[Cuis-dev] mouseMove:localPosition:
    Hilaire Fernandes 
    hilaire at drgeo.eu
       
    Mon Feb  1 07:36:45 PST 2021
    
    
  
Hi,
When the message mouseMove:localPosition: is initially sent to a given 
morph, its second argument does not have the expected value.
Indeed, when I press the morph and move about one pixel horizontally, 
this argument can be as large as 71 at 7, then in the subsequent sent 
messages, this argument really looks like a delta move.
Morph>>mouseMove: evt localPosition: deltaVector
I think the problem come from aMorph internalizeFromWorld: position as 
it does not take in consideration the handmorph position when the move 
event is started.
sendEventTo: aMorph
     "Dispatch the receiver into anObject"
     type == #mouseMove ifTrue: [
         ^aMorph processMouseMove: self localPosition: (aMorph 
internalizeFromWorld: position) ].
     ^ super sendEventTo: aMorph
Thanks
Hilaire
-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210201/12e5b34d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moveEvent.jpg
Type: image/jpeg
Size: 23376 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210201/12e5b34d/attachment-0001.jpg>
    
    
More information about the Cuis-dev
mailing list