Roassal2: RTZoomableView not working on Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Roassal2: RTZoomableView not working on Windows

Jan Blizničenko
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
Reply | Threaded
Open this post in threaded view
|

Re: Roassal2: RTZoomableView not working on Windows

abergel
We will have a look at it. This is important indeed.

Alexandre


> Le 25-10-2014 à 20:48, "Jan B." <[hidden email]> 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-tp4786667.html
> Sent from the Moose mailing list archive at Nabble.com.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal2: RTZoomableView not working on Windows

akevalion
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Roassal2: RTZoomableView not working on Windows

Jan Blizničenko
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-td4787110.html

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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal2: RTZoomableView not working on Windows

Jan Blizničenko
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-td4787110.html

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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev