Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit ee187f1

Browse files
bethgescottgonzalez
authored andcommitted
Handle FF Ubuntu deviation for mouseup
Fixes gh-242 Closes gh-243
1 parent a3d8aef commit ee187f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mouse.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ var mouseEvents = {
104104
inEvent.buttons = e.buttons;
105105
}
106106
pointermap.set(this.POINTER_ID, inEvent);
107-
if (e.buttons === 0) {
107+
108+
// Support: Firefox <=44 only
109+
// FF Ubuntu includes the lifted button in the `buttons` property on
110+
// mouseup.
111+
// https://bugzilla.mozilla.org/show_bug.cgi?id=1223366
112+
if (e.buttons === 0 || e.buttons === BUTTON_TO_BUTTONS[e.button]) {
108113
this.cleanupMouse();
109114
dispatcher.up(e);
110115
} else {

0 commit comments

Comments
 (0)