From 94ba9cd3688748c70f6a0515979c169fd2281810 Mon Sep 17 00:00:00 2001 From: huangsheng <365788957@qq.com> Date: Mon, 8 Apr 2019 15:43:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=A9=E6=94=BE=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=BC=A0=E6=A0=87mouseUp=E5=90=8E=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=BF=98=E6=98=AF=E5=9C=A8=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _src/plugins/fiximgclick.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_src/plugins/fiximgclick.js b/_src/plugins/fiximgclick.js index 1e20903d6..eeaf52f66 100644 --- a/_src/plugins/fiximgclick.js +++ b/_src/plugins/fiximgclick.js @@ -89,7 +89,8 @@ UE.plugins["fiximgclick"] = (function() { me.isDraging = false; }, _eventHandler: function(e) { - var me = this; + var me = this, + pressMouseLeft = e.buttons === undefined ? e.which === 1 : e.buttons === 1; switch (e.type) { case "mousedown": var hand = e.target || e.srcElement, @@ -105,7 +106,7 @@ UE.plugins["fiximgclick"] = (function() { } break; case "mousemove": - if (me.dragId != -1) { + if (me.dragId != -1 && pressMouseLeft) { me.updateContainerStyle(me.dragId, { x: e.clientX - me.prePos.x, y: e.clientY - me.prePos.y