summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2022-08-08 00:03:51 +0400
committerAlexander Mikhaylenko <alexm@gnome.org>2022-08-08 00:07:36 +0400
commit493660a296af3b8a140714988ddece4199818a04 (patch)
tree6c95acd60df9c8eb751f59e377a9a9e127316f55 /gtk
parent73f634435a0c9e3930c41241077aca95bcd36d23 (diff)
downloadgtk+-493660a296af3b8a140714988ddece4199818a04.tar.gz
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.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkscrolledwindow.c2
1 files changed, 1 insertions, 1 deletions
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;