[shotwell/wip/gtk4: 68/154] Revert "Try to improve zooming with scrolling guesture"




commit 7707028bad9fb74cee6192f4e18115b5b280f38e
Author: Jens Georg <mail jensge org>
Date:   Wed Sep 28 23:25:45 2022 +0200

    Revert "Try to improve zooming with scrolling guesture"
    
    This reverts commit 35f61764a3a6af616e628deb91f05c4b24718d0b.

 src/Page.vala | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Page.vala b/src/Page.vala
index 3915f21c..d21cfa33 100644
--- a/src/Page.vala
+++ b/src/Page.vala
@@ -989,16 +989,16 @@ public abstract class Page : Gtk.ScrolledWindow {
                     double dx, dy;
                     event.get_scroll_deltas(out dx, out dy);
 
-                    if (dy <= -1.0)
+                    if (dy < 0)
                         return on_mousewheel_up(event);
-                    else if (dy >= 1.0)
+                    else if (dy > 0)
                         return on_mousewheel_down(event);
-                    else if (dx <= -1.0)
+                    else if (dx < 0)
                         return on_mousewheel_left(event);
-                    else if (dx >= 1.0)
+                    else if (dx > 0)
                         return on_mousewheel_right(event);
                     else
-                        return true;
+                        return false;
                 }
            
             default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]