javascript - Mouseover and mouseout events won't trigger when mouse moves too fast? -


i write live demo show problem:

http://cssdeck.com/labs/wcczap11

if move mouse fast between blue, red , green areas, see red 'y' logs not appear between x , z logs, means can't red area mouse events.

this want:

enter image description here

but when mouse moves fast:

enter image description here

i want know there way no matter how fast move mouse result same first image?

i'm not if affects javascript, different mice have different polling rates (measured in hz) , if mouse 1000hz , move 1000px @ constant velocity should pick every pixel.

however in reality move mouse fast begin , slow down approach target improve accuracy. meaning first 700ish pixels have been moved faster 700hz poll , you're missing values mouse moved more 1px in 1hz.

that's kinda of dumbed down version (mainly because don't know it) small-hit-targets prone being missed mousing events.

you attempt make target-areas larger, still won't fix :)


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -