|
|
|
@ -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); |
|
|
|
|