[squeak-dev] The Trunk: Morphic-mt.1175.mcz

Bert Freudenberg bert at freudenbergs.de
Fri Jun 10 09:28:18 UTC 2016


On Fri, Jun 10, 2016 at 11:05 AM, <commits at source.squeak.org> wrote:

>
> Note that this commit has a postscript in the Morphic package to install
> an event filter in all hands to do the conversion of CTRL+up/down to
> MouseWheelEvent. This is the first application of our new event filters to
> convert a keyboard event into a mouse event.
>
> We should really update our VM to provide real mouse-wheel events... :-)
>

Yes we should.

And in preparation for that, we should generate VM-level mouse-wheel events
in EventSensor, not using event filters.

Such a wheel event should have x and y delta values in anticipation of
smooth scrolling. E.g. Chrome uses 120 per "notch" on clicking wheels and
otherwise computes it from the actual scroll amount (e.g. on a trackpad).
See https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel#Chrome

- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160610/4c23f541/attachment.htm


More information about the Squeak-dev mailing list