You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2019/01/10 15:23:40 UTC
[incubator-echarts] branch release updated: Fix #9479 (Edge roam
available)
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/release by this push:
new 03f5a98 Fix #9479 (Edge roam available)
03f5a98 is described below
commit 03f5a98bfba1af5eaabbb40db62469e931e0373e
Author: sushuang <su...@gmail.com>
AuthorDate: Thu Jan 10 23:23:12 2019 +0800
Fix #9479 (Edge roam available)
---
src/component/helper/RoamController.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/component/helper/RoamController.js b/src/component/helper/RoamController.js
index 7160e67..2124837 100644
--- a/src/component/helper/RoamController.js
+++ b/src/component/helper/RoamController.js
@@ -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;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org