Receive mousemove events from iframe, too

前端 未结 6 1176
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 08:17

I have a javascript app, whichs adds a mousemove listener to the document. Problem: When the mouse is moved over an iframe, the function is NOT called.

Is there a wa

6条回答
  •  臣服心动
    2020-12-03 08:53

    Put pointer-events: none; in the styles for the frame.

    I was having this problem myself and found this solution works great and is so simple!

提交回复
热议问题