I have the same iframe origin. Mouse events in an iframe are triggered in a document as follows:
// this won't work $('iframe').contents().find('body').on('mousedown mouseup mousemove', function(e) { $(document).trigger(e); }); // this does work $('iframe').contents().on('mousedown mouseup mousemove', function(e) { $(document).trigger(e); });
My problem is that mousedown occurs in an iframe, and the mouse leaves the iframe, the document does not fire its own mousemove events until mouseup appears.
I tried to run mouseup in both the iframe and the document when the mouse leaves the iframe, but the mousemove events of the document will not resume until a physical mouse occurs.
source share