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

Commit

Permalink
Handle FF Ubuntu deviation for mouseup
Browse files Browse the repository at this point in the history
Fixes gh-242
Closes gh-243
  • Loading branch information
bethge authored and scottgonzalez committed Nov 19, 2015
1 parent a3d8aef commit ee187f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mouse.js
Expand Up @@ -104,7 +104,12 @@ var mouseEvents = {
inEvent.buttons = e.buttons;
}
pointermap.set(this.POINTER_ID, inEvent);
if (e.buttons === 0) {

// Support: Firefox <=44 only
// FF Ubuntu includes the lifted button in the `buttons` property on
// mouseup.
// https://bugzilla.mozilla.org/show_bug.cgi?id=1223366
if (e.buttons === 0 || e.buttons === BUTTON_TO_BUTTONS[e.button]) {
this.cleanupMouse();
dispatcher.up(e);
} else {
Expand Down

0 comments on commit ee187f1

Please sign in to comment.