Skip to content

Commit

Permalink
Fix bug in DragRotateHandler._onMouseUp() (mapbox#9137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjana Sofia Vakil authored and mike-unearth committed Mar 18, 2020
1 parent b7ca760 commit 15b3b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/handler/drag_rotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class DragRotateHandler {
this._el.click();
}

if (DOM.mouseButton(e) !== this._eventButton) return;
if (!touchEvent && DOM.mouseButton(e) !== this._eventButton) return;
switch (this._state) {
case 'active':
this._state = 'enabled';
Expand Down

0 comments on commit 15b3b8d

Please sign in to comment.