mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +03:00
In-iframe check added before resetting all active mousetrackers
This commit is contained in:
parent
70bdc8839e
commit
fba70355cd
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user