[squeak-dev] The Trunk: Morphic-mt.2005.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jun 10 07:51:13 UTC 2022

Marcel Taeumel uploaded a new version of Morphic to project The Trunk:

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

Name: Morphic-mt.2005
Author: mt
Time: 10 June 2022, 9:51:07.983288 am
UUID: 32eb6317-4d6f-974c-8555-ca197a212997
Ancestors: Morphic-mt.2004

Adds commentary to #handleMouseMove: in PluggableListMorph.

Thanks to Karl (kfr) for the pointer!

=============== Diff against Morphic-mt.2004 ===============

Item was changed:
  ----- Method: PluggableListMorph>>handleMouseMove: (in category 'events-processing') -----
  handleMouseMove: anEvent
+ 	"Overwritten to update the #hoverRow. Note that we could also overwrite #wantsEveryMouseMove and update #hoverRow in #mouseMove:. The #potentialDropRow is currently only updated via #mouseEnterDragging:, which is reused via #mouseMove:. In #mouseLeave: and #mouseLeaveDragging:, the #hoverRow is reset, and so is #potentialDropRow. In sum, #hoverRow affects both dragging and pointing operations while #potentialDropRow only affects dragging. And dragging means that a mouse button should be pressed, or there won't be any calls to #mouseMove:. See #handlesMouseMove: in super. Design to be improved."
  	anEvent wasHandled ifFalse: [self hoverRow: (self rowAtLocation: anEvent position)].
  	super handleMouseMove: anEvent.!

More information about the Squeak-dev mailing list