Commit fcfa48d4 authored by 李维's avatar 李维

bug fix

parent 6f4ac28e
......@@ -272,18 +272,17 @@ cc.Class({
});
},
initArrowBtn() {
// const touchAniLeft = cc.find("Canvas/touchAniLeft");
// const touchAniRight = cc.find("Canvas/touchAniRight");
// this.touchAniLeft.on(cc.Node.EventType.TOUCH_END, this.onTouchLeftAni, this)
// this.touchAniRight.on(cc.Node.EventType.TOUCH_END, this.onTouchRightAni, this)
const touchAniLeft = cc.find("Canvas/touchAniLeft");
const touchAniRight = cc.find("Canvas/touchAniRight");
touchAniLeft.on(cc.Node.EventType.TOUCH_END, this.onTouchLeftAni, this)
touchAniRight.on(cc.Node.EventType.TOUCH_END, this.onTouchRightAni, this)
// const lastBtn = this.lastBtn = cc.find("Canvas/left_arrow");
// const nextBtn = this.nextBtn = cc.find("Canvas/right_arrow");
const lastBtn = this.lastBtn = cc.find("Canvas/left_arrow");
const nextBtn = this.nextBtn = cc.find("Canvas/right_arrow");
// lastBtn.on(cc.Node.EventType.TOUCH_END, this.onTouchPanelLeft, this)
lastBtn.on(cc.Node.EventType.TOUCH_END, this.onTouchPanelLeft, this)
// nextBtn.on(cc.Node.EventType.TOUCH_END, this.onTouchPanelRight, this)
nextBtn.on(cc.Node.EventType.TOUCH_END, this.onTouchPanelRight, this)
},
checkShowArrowBtn() {
this._timeoutIds.push(setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment