How can i find the instantaneous vertical speed of the mouse at the exact moment that the mouse is released? i have the users dragging over a custom control and when they release i need to know this information so i can continue the object they were dragging using the vertical component of the velocity...
so for instance, if they were dragging at an angle, use trig to determine the vertical speed and then use that..
i cant just do distance over time, because the mouse can be moved at irregular speeds and this will not represent the correct velocity at all.
I was thinking that there might be a specific interval between the triggers of MouseMove that i could use, but im not sure.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…