Jump to content

Onmousemove Onmousedown Simultaneously


dawe69hun

Recommended Posts

There are two ways I can think of at the moment.

  1. Register a mousemove event handler when the mouse is pressed down and remove the handler when the mouse is released.
  2. Set a boolean to true when the mouse is down, in the mousemove event check that the boolean is true before doing anything. Set the boolean to false when the mouse is released.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...