Okay, thank you for your answer, but there is one thing I am not sure I
understand :

Let's say for example thant I want to create a rectangle on the screen and
be able to move it up and down by pressing CTRL + up / down arrow and be
able to rotate it with the mouse wheel. Does this mean that on Linux I just
can't ?
And does this mean that if I create an application able to react to mouse
wheel, I need to code it differently for Windows and for Linux ?

Matthieu

2015-05-06 23:55 GMT+02:00 Sean P. DeNigris <s...@clipperadams.com>:

> Matthieu Lacaton wrote
> > Shouldn't I get a MouseWheel event when i use the wheel and a keystroke
> > when I use CTRL + Arrow ?
>
> Yes! But the hack that you discovered is what we have :) It's done well for
> us given it's simplicity. But it's far from ideal. For instance, IIRC the
> delta is fixed, so scrolling a lot sends a lot of tiny scrolls instead of
> more appropriately-sized ones. The keystroke-equivalence differences I
> think
> are due to the underlying platform - the meta key for Mac is CMD, so that
> is
> what's used. I extended the hack recently to get horizontal scrolling, but
> it's only implemented for the Mac VM (there is not even corresponding code
> in the image yet, pending Windows/Linux implementation). If you trap the
> events, you can see that now it's simulating
> cmd+alt+ctrl+shift+[up/down/left/right].
>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context:
> http://forum.world.st/MouseWheel-events-tp4824839p4824929.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>

Reply via email to