At 2:43 PM -0600 9/28/02, Bryan wrote:
>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?

the behavior that you are processing mouseDown with can start with

if the rightMouseDown then exit

& your mouseUp handler could catch rightMouseUp & ignore it ...


or
they can both be trapped within the primary event handler:

i.e. set a mouseDownScript that traps rightMouseDown & passes

hth

-Buzz
[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