[thelist] detect held-down mouse button

Jeff Howden jeff at jeffhowden.com
Mon Aug 18 21:12:24 CDT 2003


alex,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: shortestpath
>
> is there a way to detect a held-down button, -while-
> the mouse is moving? Consider events in two cases:
> 1. mousedown, mousemove, mouseup
> 2. mousemove
>
> I want to detect during a mousemove event, if a
> mousedown has occurred.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

not directly, but you can programmatically.

have a variable that you use to keep track of the state of the mousebutton.
you'll need to trigger the value to change with the onmousedown and
onmouseup events.  then, in your mousemove scripting, check to see if what
boolean value this variable contains.

.jeff

------------------------------------------------------
Jeff Howden - Web Application Specialist
Resume - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/






More information about the thelist mailing list