'From Squeak3.10beta of 22 July 2007 [latest update: #7137] on 30 July 2007 at 8:55:54 pm'! "Change Set: MouseMoveEnh-wiz Date: 30 July 2007 Author: (wiz) Jerome Peace two additions to mouse move methods. #deltaVector provides the actual movement. This is usually what you want to know. If my target tracked the mouse exactly how far and in what direction would it move. I just got done fixing a slew of errors that tried to calculate the ans to this using targetOffset (when they meant targetPoint.) But a mouse move might have many targets. How would you and why would you want to keep track of the offset? What you want to do is add the mouse deltaVector to the targets position and be done with it. If the target movement is constrained in some way you do not have to worry about updating the offset. You just add the next mouse deltaVector to the targets position. It works. The other method #hasMoved helps avoiding effort when the mouse move is being used for other purposes (like mouse over checkins. ) I gave MouseEvent a backup #hasMoved method so that the check could be used for any mouse event."! !MouseEvent methodsFor: 'testing' stamp: 'wiz 7/28/2007 00:08'! hasMoved "Overidden in mouse move. This allows us a quick check for any mouse event." ^ false! ! !MouseMoveEvent methodsFor: 'accessing' stamp: 'wiz 7/23/2007 20:05'! deltaVector " return the vector from startPoint to endPoint" ^ position - startPoint ! ! !MouseMoveEvent methodsFor: 'testing' stamp: 'wiz 7/23/2007 20:11'! hasMoved ^ position ~= startPoint ! !