[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Mouse Wheel Events (#41)

Nicolas Cellier notifications at github.com
Thu Dec 26 21:28:15 UTC 2019


Mouse wheels have been implemented in this commit for OSX and unix VM:

https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/897ef1725e32c2eb3d24e3402b2e95b114b8b28b

I'm also proposing https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/461 for windows VM

Those events will be generated with a VM parameter saved with image.
In Squeak 5.3, see: `Smalltalk sendMouseWheelEvents: true.`.

So we are near to close this issue...

However, the linux and OSX commit do not report button and modifiers state correctly (correctly = like every other mouse event).
We have to change that.

Also, some devices (like MacBook trackpad) generate a flow of wheel events with very small deltas (far less than 120, I observed deltas down to 1!).
This delivers far too many events to image side, making Morphic not responsive.
Thus we shall better accumulate a few of those events at VM side until a threshold is reached.
I have hardcoded a threshold of 20 on windows VM (`WHEEL_DELTA/6`), it kind of works for me... (maybe 10 would give a greater sensitivity).

I will create another branch with fixes for OSX/linux.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/41#issuecomment-569136357
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20191226/5c185eeb/attachment.html>


More information about the Vm-dev mailing list