ThunderAI Posted July 26, 2011 Share Posted July 26, 2011 What technique is required to make a mousedown and mouse up trigger once the mouse has been moved? For example, I'd like to trigger a function on mouse down, let it continue to run while the mouse button is down even when the mouse is bring moved (ie drawing a shape), and stop drawing when the mouse is up. Would I need to have a function mouse over and then check for mouse down in the function or what trick would work? Link to comment https://forums.phpfreaks.com/topic/242871-onmouseup-fails-when-mouse-moved/ Share on other sites More sharing options...
freelance84 Posted July 27, 2011 Share Posted July 27, 2011 onmousedown="startDrawingFunction();" onmouseup="stopDrawingFunction();" Link to comment https://forums.phpfreaks.com/topic/242871-onmouseup-fails-when-mouse-moved/#findComment-1247780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.