[gtk/wip/exalm/multiplier] scrolledwindow: Lower the scroll multiplier




commit 493660a296af3b8a140714988ddece4199818a04
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Aug 8 00:03:51 2022 +0400

    scrolledwindow: Lower the scroll multiplier
    
    c68247f63ba1db8849eb1679e53a64f7f2633973 introduced a scroll multiplier,
    intended to be significantly lower than the GTK 4.6 behavior but higher
    than 1. However, it was _higher_ than 4.6, since 4.6 also had a permanent
    1/10 multiplier in GDK, so the cited multiplier values were really 6.4 and
    9.7.

 gtk/gtkscrolledwindow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 116fc9645a..bc48c6c6c7 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -201,7 +201,7 @@
 /* Scrolled off indication */
 #define UNDERSHOOT_SIZE 40
 
-#define MAGIC_SCROLL_FACTOR (42 / 7 / 1.618033 * 2.718281)
+#define MAGIC_SCROLL_FACTOR 2.5
 
 typedef struct _GtkScrolledWindowClass         GtkScrolledWindowClass;
 


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