I believe these values should be like the below.
Refer to for example here: http://xahlee.info/linux/linux_x11_mouse_button_number.html (the first scroll event is button 4). And the up-direction should be negative for Squeak. After these adjustments the behavior was correct on my machine.
To try out, ensure that you have `Smalltalk sendMouseWheelEvents: true` You can view, comment on, or merge this pull request online at:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/446
-- Commit Summary --
* fix calculation of x11 scroll distances
-- File Changes --
M platforms/unix/vm-display-X11/sqUnixX11.c (6)
-- Patch Links --
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/446.patch https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/446.diff
This is absolutely right, good find! I think that we under-use this feature!
Merged #446 into Cog.
vm-dev@lists.squeakfoundation.org