I have an iframe that takes up the entire window (100% wide, 100% high), and I need the main window to be able to detect when the mouse has been moved.
Already tried
If your target isn't Opera 9 or lower and IE 9 or lower you can use css attribute pointer-events: none.
pointer-events: none
I found it the best way just to ignore iframe. I add class with this attribute to iframe in onMouseDown event and remove in onMouseUp event.
onMouseDown
onMouseUp
Works perfect for me.