mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Merge pull request #1223 from LarissaSmith/master
Fix image stuck to mouse when right-clicking and left-clicking simult…
This commit is contained in:
commit
c7e3d9fc0e
@ -2879,6 +2879,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
// A primary mouse button may have been released while the non-primary button was down
|
||||
if (pointsList.contacts > 0 && pointsList.type === 'mouse') {
|
||||
// Stop tracking the mouse; see https://github.com/openseadragon/openseadragon/pull/1223
|
||||
pointsList.contacts--;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user