From 8d4e5daaec637bf71ad920da677775884c5bbb92 Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 18 Feb 2019 22:29:01 +0800 Subject: [PATCH] fix pushbox --- libs/events.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/libs/events.js b/libs/events.js index 3bdf5e54..57b81c4a 100644 --- a/libs/events.js +++ b/libs/events.js @@ -2178,12 +2178,19 @@ events.prototype.pushBox = function (data) { core.updateStatusBar(); core.status.replay.animate = true; - core.moveHero(direction, function() { - core.status.replay.animate = false; - core.status.route.pop(); - core.events.afterPushBox(); - core.replay(); - }); + core.lockControl(); + setTimeout(function () { + core.moveHero(direction, function() { + core.status.replay.animate = false; + core.status.route.pop(); + core.events.afterPushBox(); + // 可能有阻击... + if (core.status.event.id == null) { + core.unLockControl(); + core.replay(); + } + }); + }) }