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
@ -851,7 +851,9 @@ var BaseAppView = GObject.registerClass({
|
|||||||
const [gridWidth, gridHeight] = this.get_transformed_size();
|
const [gridWidth, gridHeight] = this.get_transformed_size();
|
||||||
|
|
||||||
const vertical = this._orientation === Clutter.Orientation.VERTICAL;
|
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
|
const gridEnd = vertical
|
||||||
? gridY + gridHeight - OVERSHOOT_THRESHOLD
|
? gridY + gridHeight - OVERSHOOT_THRESHOLD
|
||||||
: gridX + gridWidth - OVERSHOOT_THRESHOLD;
|
: gridX + gridWidth - OVERSHOOT_THRESHOLD;
|
||||||
|
Loading…
Reference in New Issue
Block a user