Hello

In latest builds of Pharo 4 (in last 2 months probably), there has been a
change in settings of mouse wheel event creation.
In HandMorph >>#generateKeyboardEvent:

In Pharo 3 there is MouseWheelEvent created by calling
MouseWheelEvent new 
  setType: #mouseWheel
  position: lastMouseEvent cursorPoint
  direction: (charCode = 30 ifTrue: [#up] ifFalse: [#down])
  buttons: buttons
  hand: self
  stamp: stamp

In latest Pharo 4 image, there is MouseWheelEvent created by calling 
MouseWheelEvent
  fromCharacter: charCode asCharacter
  position: lastMouseEvent cursorPoint
  buttons: buttons
  hand: self
  stamp: stamp

There is a difference in what it results into, especially in
MouseWheelEvent's instance variable direction. Pharo 3 sets direction to
#up, Pharo 4 sets it to Character arrowUp.

My question is whether direction being Character arrowUp is bug or feature,
therefore if it should be fixed on Pharo side by using #up direction in
MouseWheelEvent like before, or if it should be fixed on users side (Roassal
for example), which currently compare it to symbol #up and should all
compare it to Character arrowUp from now on.

Jan



--
View this message in context: 
http://forum.world.st/MouseWheelEvent-direction-in-Pharo-4-tp4806863.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to