aboutsummaryrefslogtreecommitdiff
path: root/src/stardict-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stardict-view.c')
-rw-r--r--src/stardict-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stardict-view.c b/src/stardict-view.c
index a6f7733..2ac02e0 100644
--- a/src/stardict-view.c
+++ b/src/stardict-view.c
@@ -489,8 +489,9 @@ stardict_view_scroll_event (GtkWidget *widget, GdkEventScroll *event)
{
// On GDK/Wayland, the mouse wheel will typically create 1.5 deltas,
// after dividing a 15 degree click angle from libinput by 10.
+ // (Noticed on Arch + Sway, cannot reproduce on Ubuntu 22.04.)
// On X11, as libinput(4) indicates, the delta will always be 1.0.
- double delta = CLAMP(event->delta_y, -1, +1);
+ double delta = CLAMP (event->delta_y, -1, +1);
stardict_view_scroll (self, GTK_SCROLL_STEPS, 3 * delta);
return TRUE;
}