[squeak-dev] The Trunk: Morphic-cmm.984.mcz

commits at source.squeak.org commits at source.squeak.org
Fri May 29 21:12:18 UTC 2015


Chris Muller uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-cmm.984.mcz

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

Name: Morphic-cmm.984
Author: cmm
Time: 19 May 2015, 2:56:17.688 pm
UUID: e1b37491-efb5-4415-bf9f-6f44b577daa0
Ancestors: Morphic-mt.983

Fix the ability to let Morph users set up their own EventHandler to have proper filtering of MouseMoveEvents.

=============== Diff against Morphic-mt.983 ===============

Item was changed:
  ----- Method: Morph>>handlesMouseMove: (in category 'event handling') -----
  handlesMouseMove: anEvent 
  	"Do I want to receive mouseMove: when the hand passes over the receiver?  Rules say that by default a morph gets #mouseMove iff
  		* the hand is not dragging anything,
  			+ and some button is down,
  			+ and the receiver is the current mouse focus."
+ 	self eventHandler ifNotNil: [^ self eventHandler handlesMouseMove: anEvent].
  	anEvent hand hasSubmorphs ifTrue: [ ^ false ].
  	(anEvent anyButtonPressed and: [ anEvent hand mouseFocus == self ]) ifFalse: [ ^ false ].
  	^ true!



More information about the Squeak-dev mailing list