From 9fb145fcfeb1d6210b60a48d20b3729454489d7b Mon Sep 17 00:00:00 2001 From: jiannibang Date: Mon, 23 Nov 2020 18:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E9=87=8C=E5=A5=97=E5=9C=88=E6=9A=82?= =?UTF-8?q?=E5=81=9C=E6=97=B6=E7=82=B9=E5=87=BB=E5=B7=A6=E5=8F=B3=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/water/waterful.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/h5/water/waterful.js b/h5/water/waterful.js index da8bb96..24be999 100644 --- a/h5/water/waterful.js +++ b/h5/water/waterful.js @@ -288,6 +288,7 @@ export default class Waterful { } eventBinding(container) { container.querySelector(".button.left").addEventListener("click", (t) => { + if (createjs.Ticker.pause) return; if (this.steps) { this.steps--; this._options.callbacks.step(this.steps); @@ -297,6 +298,7 @@ export default class Waterful { e && (this._stage.addChild(e), e.gotoAndPlay("run")); }); container.querySelector(".button.right").addEventListener("click", (t) => { + if (createjs.Ticker.pause) return; if (this.steps) { this.steps--; this._options.callbacks.step(this.steps);