The Trunk: Morphic-mt.1615.mcz

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

The Trunk: Morphic-mt.1615.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1615.mcz

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

Name: Morphic-mt.1615
Author: mt
Time: 6 January 2020, 10:17:52.75843 am
UUID: 24a18424-814a-df44-a3d6-d7678f2be6ba
Ancestors: Morphic-mt.1614

Fixes two selection bugs lists and alternate-multi-selection lists.

=============== Diff against Morphic-mt.1614 ===============

Item was added:
+ ----- Method: AlternatePluggableListMorphOfMany>>mouseLeaveDragging: (in category 'event handling') -----
+ mouseLeaveDragging: anEvent
+ "Dragging means changing the list's multi-selection state. Thus, there is no support for drag-and-drop of elements within a selection."
+
+ self hoverRow: nil.
+ self resetPotentialDropRow.!

Item was changed:
  ----- Method: PluggableListMorph>>mouseUp: (in category 'event handling') -----
  mouseUp: event
 
  | row |
  model okToChange ifFalse: [^ self].
+ (self containsPoint: event position) ifFalse: [^ self].
 
  row := self rowAtLocation: event position.
  row = self selectionIndex
  ifTrue: [(autoDeselect ifNil: [true]) ifTrue: [row = 0 ifFalse: [self changeModelSelection: 0] ]]
  ifFalse: [self changeModelSelection: (self modelIndexFor: row)].
 
  event hand newKeyboardFocus: self.
  hasFocus := true.
  Cursor normal show.!