Login  Register

MouseWheel events

Posted by Matthieu on May 06, 2015; 3:38pm
URL: https://forum.world.st/MouseWheel-events-tp4824839.html

Hello everyone,

I have a question about MouseWheel events in Pharo.

On Linux, when I use the wheel of my mouse the event I get in return is an instance of MouseWheelEvent :
" [(606@633) mouseWheel Character arrowDown CTRL 33261828 nil] "

When I press "CTRL + ArrowUp" or "CTRL + ArrowDown" on my keyboard I get the same type of MouseWheelEvent.

On the other side, on Windows XP, when I press "CTRL + ArrowUp" or "CTRL + ArrowDown" on my keyboard I also get a MouseWheelEvent but when I use the wheel of my mouse I get a Keystroke event :
" [keystroke '<Ctrl->'] " with a keyValue of 30 for a mousewheel up and 31 for a mousewheel down.

I am a bit confused about this :

Shouldn't I get a MouseWheel event when i use the wheel and a keystroke when I use CTRL + Arrow ?

Why is it different from Linux to Windows ?

In both cases I used Pharo4 VM + a fresh pharo 4 image.

Thanks,

Matthieu