[gnome-shell/gbsneto/pagination: 30/32] appDisplay: Allow a slighly bigger area for drag overshoot
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-shell/gbsneto/pagination: 30/32] appDisplay: Allow a slighly bigger area for drag overshoot
- Date: Wed, 17 Jun 2020 16:12:28 +0000 (UTC)
commit 461ac152dc566e484de1e1a416aff22c98f3d8d4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri May 22 14:07:10 2020 -0300
    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
 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 9f18f7b1fa..012af56491 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -758,7 +758,7 @@ class AppDisplay extends BaseAppView {
     _handleDragOvershoot(dragEvent) {
         let [, gridY] = this.get_transformed_position();
         let [, gridHeight] = this.get_transformed_size();
-        let gridBottom = gridY + gridHeight;
+        const gridBottom = gridY + gridHeight - OVERSHOOT_THRESHOLD;
 
         // Already animating
         if (this._adjustment.get_transition('value') !== null)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]