summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-22 21:36:00 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-22 21:36:18 +0800
commit3dbe7caed744fe95b855d56bc2f8ebe97788133c (patch)
tree4c24df192d2cb28f0ebd40841e7ec954b792af0a /src
parent551fe22557e81223cb048437cf0e7fe854a563f2 (diff)
downloademacs-3dbe7caed744fe95b855d56bc2f8ebe97788133c.tar.gz
* src/pgtkterm.c (scroll_event): Fix scroll delta scale.
Diffstat (limited to 'src')
-rw-r--r--src/pgtkterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 74ecde09797..74a71b984c5 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -6141,8 +6141,8 @@ scroll_event (GtkWidget * widget, GdkEvent * event, gpointer * user_data)
inev.ie.modifiers |= (inev.ie.kind == HORIZ_WHEEL_EVENT
? (delta_x >= 0 ? down_modifier : up_modifier)
: (delta_y >= 0 ? down_modifier : up_modifier));
- inev.ie.arg = list3 (Qnil, make_float (delta_x),
- make_float (-delta_y));
+ inev.ie.arg = list3 (Qnil, make_float (delta_x * 100),
+ make_float (-delta_y * 100));
}
else
{