[gnome-shell/gbsneto/custom-icon-positions: 13/17] appDisplay: Allow overshooting any icon
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/custom-icon-positions: 13/17] appDisplay: Allow overshooting any icon
- Date: Wed, 24 Jun 2020 14:35:52 +0000 (UTC)
commit b6b87d4bbd3263b0376f975e6cd4f3eebf8b73aa
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed May 27 15:49:29 2020 -0300
appDisplay: Allow overshooting any icon
Now that the icon being dragged can come from AppDisplay and also
a folder dialog, the check for when to overshoot is broken. Check
if the icon is a BaseAppView icon.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1284
js/ui/appDisplay.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 463c51e4af..a10f27d97c 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1045,7 +1045,7 @@ class AppDisplay extends BaseAppView {
// Handle the drag overshoot. When dragging to above the
// icon grid, move to the page above; when dragging below,
// move to the page below.
- if (this._grid.contains(appIcon))
+ if (appIcon instanceof BaseAppIcon)
this._handleDragOvershoot(dragEvent);
this._maybeMoveItem(dragEvent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]