mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2581>
This commit is contained in:
parent
550a51d4a8
commit
150866d0bf
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue