Help with repel in drag and drop

Bob Arning arning at
Sun Feb 16 16:38:44 UTC 2003

On Sun, 16 Feb 2003 16:40:58 +0100 Stephane Ducasse <ducasse at> wrote:
>Here my question:
>-  only when I put a self halt before a call to
>evt hand grabMorph: evt in the method rejectDropMorphEvent: evt below. 
>I'm sure that I'm missing an important invocation but cannot figure out 
>which one.
>Thanks in advance for magic powder.

The HandMorph has some logic that makes sure it is not left holding the dropped morph. The following method works around that.


'From Squeak3.4beta of ''1 December 2002'' [latest update: #5138] on 16 February 2003 at 11:36:34 am'!

!DroppedMorph methodsFor: 'dropping/grabbing' stamp: 'raa 2/16/2003 11:36'!
rejectDropMorphEvent: evt

	| h |

	h _ evt hand.
	WorldState addDeferredUIMessage: [h grabMorph: self].
	evt wasHandled: true.
! !

More information about the Squeak-dev mailing list