[squeak-dev] Re: mouse enter/move/leave event confusion

Bert Freudenberg bert at freudenbergs.de
Fri Dec 4 15:12:45 UTC 2015


> On 04.12.2015, at 16:03, Bert Freudenberg <bert at freudenbergs.de> wrote:
> 
> 
>> On 04.12.2015, at 11:33, Stephan Eggermont <stephan at stack.nl> wrote:
>> 
>> On 04-12-15 01:54, tim Rowledge wrote:
>>> Hi,
>>> so now I know why I can get so many spurious enter/leave events. It’s really embarrassingly dumb…
>>> 
>>> When you are dragging a morph around and have the morph positioned at the event cursor point - ie not centred under it as you eventually want - then moving even moderately quickly can result in the cursor point being over the dragged morph. Which is not the canvas morph. So you’ve left the canvas morph; and you get a mouse leave event. D’oh! Then the fake-cursor-morph gets deleted, you are now over the canvas morph so you get a mouse enter event, and so on.
>> 
>> Hmm. conceptually I would expect to get no spurious enter/leaves when the morph you're dragging around is either a submorph of the canvas, or grabbed by the hand.
> 
> This. A grabbed morph is not in the world so should not generate events.
> 
> - Bert -

Oh, and I thought you were going to use the temp cursor? Why wouldn’t that work?

- Bert -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4115 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20151204/921967e6/smime.bin


More information about the Squeak-dev mailing list