Skip to content

Commit

Permalink
Fix #9479 (Edge roam available)
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Jan 10, 2019
1 parent edd23af commit 03f5a98
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/component/helper/RoamController.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ zrUtil.mixin(RoamController, Eventful);


function mousedown(e) {
if (eventTool.notLeftMouse(e)
if (eventTool.isMiddleOrRightButtonOnMouseUpDown(e)
|| (e.target && e.target.draggable)
) {
return;
Expand All @@ -149,9 +149,8 @@ function mousedown(e) {
}

function mousemove(e) {
if (eventTool.notLeftMouse(e)
if (!this._dragging
|| !isAvailableBehavior('moveOnMouseMove', e, this._opt)
|| !this._dragging
|| e.gestureEvent === 'pinch'
|| interactionMutex.isTaken(this._zr, 'globalPan')
) {
Expand All @@ -178,7 +177,7 @@ function mousemove(e) {
}

function mouseup(e) {
if (!eventTool.notLeftMouse(e)) {
if (!eventTool.isMiddleOrRightButtonOnMouseUpDown(e)) {
this._dragging = false;
}
}
Expand Down

0 comments on commit 03f5a98

Please sign in to comment.