mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-17 23:33:14 +03:00
Fix image stuck to mouse when right-clicking and left-clicking simultaneously.
Mouseup and mousedown events are lost when two buttons are pressed at the same time. Pressing buttons in the order left-button down, right-button down (ignored), left-button up (ignored), right-button up was leaving drag state active.
This commit is contained in:
parent
265625df75
commit
319d27f0c0
@ -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
|
||||||
|
pointsList.contacts--;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user