- Home /
How do I separate OnMouseDown() from OnMouseDrag()
I need one of two specific things to happen:
If the mouse is held down for more than two seconds:
-call OnMouseDrag()
If the mouse is held down for less than two seconds:
-call OnMouseDown()
Right now they're interfering with each other and my program is calling OnMouseDrag() pretty much no matter what, does anyone have an idea of how to separate them?
Comment
You could start a timer on the On$$anonymous$$ouseDown() that On$$anonymous$$ouseDrag() checks.