In-iframe check added before resetting all active mousetrackers

This commit is contained in:
Jose 2017-02-23 19:15:29 +01:00
parent 70bdc8839e
commit fba70355cd

View File

@ -2673,7 +2673,10 @@ function onCanvasEnter( event ) {
function onCanvasExit( event ) {
$.MouseTracker.resetAllMouseTrackers(); // <== Necessary to patch issue #697 "Mouse up outside map will cause "canvas-drag" event to stick"
if (window.location != window.parent.location){
$.MouseTracker.resetAllMouseTrackers();
}
/**
* Raised when a pointer leaves the {@link OpenSeadragon.Viewer#canvas} element.
*