I have the following code snippets
$(document).mousedown(function(event) {
doSomething();
}
I can capture the mousedown
event successfully.
I am trying to do the following:
- Capture the first
mousedown
event
- I want to detect if the user is still holding the mouse down so I can do something else.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…