From 150866d0bfb249faab6c41735b8ec48f05f8d557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 24 Jun 2022 16:37:00 +0200 Subject: [PATCH] appDisplay: Apply overshoot threshold to the left as well We also want to apply this threshold when overshooting to the left, not only to the right. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4774 Part-of: --- js/ui/appDisplay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index db87c063f..3fa1451d0 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -851,7 +851,9 @@ var BaseAppView = GObject.registerClass({ const [gridWidth, gridHeight] = this.get_transformed_size(); const vertical = this._orientation === Clutter.Orientation.VERTICAL; - const gridStart = vertical ? gridY : gridX; + const gridStart = vertical ? + ? gridY + DRAG_OVERSHOOT_THRESHOLD + : gridX + DRAG_OVERSHOOT_THRESHOLD; const gridEnd = vertical ? gridY + gridHeight - OVERSHOOT_THRESHOLD : gridX + gridWidth - OVERSHOOT_THRESHOLD;