Skip to content

Commit

Permalink
Fix bug in DragRotateHandler._onMouseUp() (#9137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjana Sofia Vakil authored and mourner committed Dec 25, 2019
1 parent b61d19b commit bdc43ac
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 bdc43ac

Please sign in to comment.