appDisplay: Allow a slighly bigger area for drag overshoot
Now that we don't have the Frequent tab anymore, and subsequently the buttons to switch tabs, the app grid fill all the way to the bottom, leaving no room for drag overshoot. Add a 20px (i.e. OVERSHOOT_THRESHOLD) area at the bottom of the grid where dragging actually scrolls to the next page. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1271
This commit is contained in:
parent
cff0752bcc
commit
68203e7091
@ -774,7 +774,7 @@ class AppDisplay extends BaseAppView {
|
|||||||
_handleDragOvershoot(dragEvent) {
|
_handleDragOvershoot(dragEvent) {
|
||||||
let [, gridY] = this.get_transformed_position();
|
let [, gridY] = this.get_transformed_position();
|
||||||
let [, gridHeight] = this.get_transformed_size();
|
let [, gridHeight] = this.get_transformed_size();
|
||||||
let gridBottom = gridY + gridHeight;
|
const gridBottom = gridY + gridHeight - OVERSHOOT_THRESHOLD;
|
||||||
|
|
||||||
// Already animating
|
// Already animating
|
||||||
if (this._adjustment.get_transition('value') !== null)
|
if (this._adjustment.get_transition('value') !== null)
|
||||||
|
Loading…
Reference in New Issue
Block a user