- 注册时间
- 2013-2-13
- 最后登录
- 2023-10-13
- 阅读权限
- 200
- 积分
- 9304
- 精华
- 1
- 帖子
- 2411
|
stayhere 发表于 2016-9-3 12:23
MOUSE_DOWN 事件点击两次只执行一次
确实有这个问题,下次更新会解决的,
如果现在影响你开发的话,把下面代码加到你的LInit的上面就可以了
- LGlobal.ll_touchEnd = function (event) {
- var e, eve, k, i, l, h;
- LGlobal.IS_MOUSE_DOWN = false;
- if (LMultitouch.inputMode == LMultitouchInputMode.TOUCH_POINT) {
- for (k in LMultitouch.touchs) {
- e = LMultitouch.touchs[k];
- h = false;
- for (i = 0,l = event.touches.length; i < l; i++) {
- if (event.touches[i].identifier == e.touchPointID) {
- h = true;
- break;
- }
- }
- if (!h) {
- eve = e;
- delete LMultitouch.touchs[k];
- LGlobal.mouseEvent(eve, LMouseEvent.MOUSE_UP);
- }
- }
- }
- if (!eve) {
- eve = {offsetX : LGlobal.offsetX, offsetY : LGlobal.offsetY};
- LGlobal.mouseEvent(eve, LMouseEvent.MOUSE_UP);
- }
- LGlobal.touchHandler(event);
- LGlobal.buttonStatusEvent = null;
- if (LGlobal.mouseJoint_end) {
- LGlobal.mouseJoint_end();
- }
- LGlobal.stage.dispatchEvent(new LEvent(LFocusEvent.FOCUS_OUT));
- };
复制代码 |
|