The Inbox: Morphic-jmg.1055.mcz

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

The Inbox: Morphic-jmg.1055.mcz

commits-2
A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-jmg.1055.mcz

==================== Summary ====================

Name: Morphic-jmg.1055
Author: jmg
Time: 27 November 2015, 11:34:49.151 pm
UUID: 2866bfd1-711c-4f03-b944-b8d4adb0f6cb
Ancestors: Morphic-mt.1054

If you're like me and have the swapMouseButtons perference unselected because you are on windows, then right-clicking on a morph and picking the 'select' menu item raises an exception because popUpFor:at:hand: is expecting a position for the at: argument, and currently this sends in a MouseEvent transformed by the relevant amount. We need to take one additional step and extract the position from this newly translated event, which I do in this change.

=============== Diff against Morphic-mt.1054 ===============

Item was changed:
  ----- Method: SimpleHaloMorph>>popUpFor:hand: (in category 'pop up') -----
  popUpFor: morph hand: hand
 
  self
  popUpFor: morph
+ at: (hand lastEvent transformedBy: (morph transformedFrom: nil)) position
- at: (hand lastEvent transformedBy: (morph transformedFrom: nil))
  hand: hand!