Hello
RTZoomableView should enable zooming with mouse wheel. It works fine on Linux, not tested on Mac, but doesn't work for me on Windows (mouse wheel does nothing). For example, this one: RTRoassalExample new exampleScrollZoom
Jan
-- View this message in context: http://forum.world.st/Roassal2-RTZoomableView-not-working-on-Windows-tp47866... Sent from the Moose mailing list archive at Nabble.com.
We will have a look at it. This is important indeed.
Alexandre
Le 25-10-2014 à 20:48, "Jan B." bliznjan@fit.cvut.cz a écrit :
Hello
RTZoomableView should enable zooming with mouse wheel. It works fine on Linux, not tested on Mac, but doesn't work for me on Windows (mouse wheel does nothing). For example, this one: RTRoassalExample new exampleScrollZoom
Jan
-- View this message in context: http://forum.world.st/Roassal2-RTZoomableView-not-working-on-Windows-tp47866... Sent from the Moose mailing list archive at Nabble.com. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
I checked this and I see that there is an error with:
HandMorph>>#generateKeyboardEvent:
in this piece of code:
(type = #keystroke and: [(buttons anyMask: 16) and: [*charCode *= 30 or: [*charCode *= 31]]]) ifTrue: [^MouseWheelEvent new setType: #mouseWheel position: lastMouseEvent cursorPoint direction: (charCode = 30 ifTrue: [#up] ifFalse: [#down]) buttons: buttons hand: self stamp: stamp].
The value for *charCode* is 0, that is the reason why MouseWheelEvent does not work in Roassal2 in Windows. Instead of MouseWheelEvent the KeyboardEvent is used.
*Note:* *keyvalue* has the value 31.
Maybe there is and error with Sensor class in Windows
Cheers, Milton
2014-10-26 8:22 GMT-03:00 Alexandre Bergel alexandre.bergel@me.com:
We will have a look at it. This is important indeed.
Alexandre
Le 25-10-2014 à 20:48, "Jan B." bliznjan@fit.cvut.cz a écrit :
Hello
RTZoomableView should enable zooming with mouse wheel. It works fine on Linux, not tested on Mac, but doesn't work for me on Windows (mouse wheel does nothing). For example, this one: RTRoassalExample new exampleScrollZoom
Jan
-- View this message in context:
http://forum.world.st/Roassal2-RTZoomableView-not-working-on-Windows-tp47866...
Sent from the Moose mailing list archive at Nabble.com. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Thanks for this finding. It seems like problem in Pharo itself, so I reposted this problem to Pharo-users mailing list. http://forum.world.st/Mouse-wheel-scrolling-not-working-right-on-Windows-td4...
Jan
akevalion wrote
I checked this and I see that there is an error with:
HandMorph>>#generateKeyboardEvent:
in this piece of code:
(type = #keystroke and: [(buttons anyMask: 16) and: [*charCode *= 30 or: [*charCode *= 31]]]) ifTrue: [^MouseWheelEvent new setType: #mouseWheel position: lastMouseEvent cursorPoint direction: (charCode = 30 ifTrue: [#up] ifFalse: [#down]) buttons: buttons hand: self stamp: stamp].
The value for *charCode* is 0, that is the reason why MouseWheelEvent does not work in Roassal2 in Windows. Instead of MouseWheelEvent the KeyboardEvent is used.
*Note:* *keyvalue* has the value 31.
Maybe there is and error with Sensor class in Windows
Cheers, Milton
Moose-dev mailing list
Moose-dev@.unibe
-- View this message in context: http://forum.world.st/Roassal2-RTZoomableView-not-working-on-Windows-tp47866... Sent from the Moose mailing list archive at Nabble.com.
Hi again
Problem has been on Windows VM side and has been fixed today. So since today's Windows VM (VM Windows 396 / 05.12.2014 08:29) mouse wheel works even on Windows.
Jan Blizničenko
Jan B. wrote
Thanks for this finding. It seems like problem in Pharo itself, so I reposted this problem to Pharo-users mailing list. http://forum.world.st/Mouse-wheel-scrolling-not-working-right-on-Windows-td4...
Jan akevalion wrote
I checked this and I see that there is an error with:
HandMorph>>#generateKeyboardEvent:
in this piece of code:
(type = #keystroke and: [(buttons anyMask: 16) and: [*charCode *= 30 or: [*charCode *= 31]]]) ifTrue: [^MouseWheelEvent new setType: #mouseWheel position: lastMouseEvent cursorPoint direction: (charCode = 30 ifTrue: [#up] ifFalse: [#down]) buttons: buttons hand: self stamp: stamp].
The value for *charCode* is 0, that is the reason why MouseWheelEvent does not work in Roassal2 in Windows. Instead of MouseWheelEvent the KeyboardEvent is used.
*Note:* *keyvalue* has the value 31.
Maybe there is and error with Sensor class in Windows
Cheers, Milton
Moose-dev mailing list
Moose-dev@.unibe
-- View this message in context: http://forum.world.st/Roassal2-RTZoomableView-not-working-on-Windows-tp47866... Sent from the Moose mailing list archive at Nabble.com.