You can try it yourself in this fiddle. When you move cursor to the green square, it changes color to red one. Try to click, but do not move mouse pointer. The square flies away, but remains red.
Any ideas, what could I do with this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In some browsers,
:hoveris only recomputed when the mouse is moved, in an effort to be more efficient.There isn’t much you can do about this, unfortunately, except taking matters into your own hands and using JavaScript to change the box’s colour when the mouse enters it.