Re: MouseWheel events
Posted by
Sean P. DeNigris on
May 06, 2015; 9:55pm
URL: https://forum.world.st/MouseWheel-events-tp4824839p4824929.html
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