scrolledwindow: Lower the scroll multiplier
authorAlexander Mikhaylenko <alexm@gnome.org>
Sun, 7 Aug 2022 20:03:51 +0000 (00:03 +0400)
committerAlexander Mikhaylenko <alexm@gnome.org>
Sun, 7 Aug 2022 20:07:36 +0000 (00:07 +0400)
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

index 116fc9645a73303a0e8bdc381b716e144369a462..bc48c6c6c743de89ae265ac660815abe652ee9b1 100644 (file)
 /* 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;