-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
My problem sounds complicated but what I need it simple: same as in a Google Map, I want to track mouse position while panning the map (drag and move), even if the map is embedded in a crossdomain iframe and the mouse is already outside the iframe.
Surprisingly, simply adding a listener on "mousemove" to the whole window (inside the iframe) returns the coordinates also outside the iframe - if only you are not just moving your mouse but you started dragging inside the iframe.
Try this: http://fiddle.jshell.net/1L4gajzf/1/
If you start dragging in the canvas, you can track the mouse also outside of the main window (iframe).
The problem is, when I initialize createjs, this functionality stops working. Just uncomment the first line. The event is still captured on the window but even if you start dragging inside the canvas you will not get mouse coordinates when you move outside of the iframe.
What is createjs doing that it breaks this functionality?