Mouseover / mouseenter does not start when scrolling

I have a fancy Apple mouse that detects finger movements such as swipe and scroll.

Leaving the cursor fixed on the screen, but using my finger to scroll down my page, the cursor (although fixed) naturally moves through the various elements, because the elements move themselves.

My problem is that the corresponding mouseover / mouseenter callbacks are not called when the mouse cursor is over them.

How can I solve this problem?

+5
source share
3 answers

, , . onscroll document.elementFromPoint, , , onscroll.

+3

JQuery mousemove - , , , .

trigger mouseenter mousemove, - / , , mouseenter mousemove.

+1

I don’t think you can ... without having a function that works on the timer to check the position of the mouse against the elements, but the performance that it would affect would be astronomical, to say the least. He probably should post a bug report with the browser manufacturer and check other browsers to see if the behavior is replicated. What I suppose, it will be because do not think that any browser will fire a mouseover / mouseenter event if the mouse was not physically moved.

0
source

All Articles