I have a similar routine within a project and I simply applied the "snap 
back" behaviour to both on mouseUp and on rightMouseUp. If a user 
accidently right-clicks the object (assuming it is the wrong one) snaps 
back to its former location as it is meant to.

>Message: 1
>Date: Sat, 28 Sep 2002 14:43:17 -0600
>From: Bryan Thompson <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: <lingo-l> Right mouse clicks
>Reply-To: [EMAIL PROTECTED]
>
>Greetings all,
>
>Windows D8.5
>
>I'm using the "draggable" library behavior in a game to allow the player to
>drag a sprite.  On mouseUp I'm calling a handler to snap the sprite back to
>its original location.  Problem is, if the player accidentally hits the
>right mouse button while dragging the sprite (with the left button down of
>course), the mouseUp event is apparently not generated... at least the
>sprite is not receiving it.
>
>The result is that the sprite stays where it was on mouseUp instead of
>snapping back... at least until it is dragged & released again.
>
>Anyone know how to disable the rightMouseDown?  Or at least how I can
>intercept it?
>
>Thanks.
>
>Bryan Thompson (Kerry's little brother)



***********************************************************************

Alan Neilsen bmm(hon.)  Telephone : +61 03 5227 8155
Educational Developer           E-mail: [EMAIL PROTECTED]
Learning Services
Deakin University
Geelong Waterfront Campus
Geelong VIC 3217

Please feel free to visit us. See what we do at -
Learning Services: http://www.deakin.edu.au/learningservices
Exemplars of our work: http://cowan.ls.deakin.edu.au/exemplars/

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to