提交 03f5a98b 编写于 作者: S sushuang

Fix #9479 (Edge roam available)

上级 edd23af9
......@@ -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;
......@@ -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')
) {
......@@ -178,7 +177,7 @@ function mousemove(e) {
}
function mouseup(e) {
if (!eventTool.notLeftMouse(e)) {
if (!eventTool.isMiddleOrRightButtonOnMouseUpDown(e)) {
this._dragging = false;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册