Commit 855b04e7 authored by rockyl's avatar rockyl

修改callOnNextTick方法,不去重

parent 37670302
......@@ -44,7 +44,7 @@ export default class TouchZoom extends InteractComponent {
}
}
onGlobalTouchEnd(e) {
onGlobalTouchEnd(e): boolean {
super.onGlobalTouchEnd(e);
if (this._touchBegin) {
......
......@@ -84,15 +84,15 @@ export default class Button extends InteractComponent {
this.touchOut = true;
}
onGlobalTouchEnd(e) {
super.onGlobalTouchEnd(e);
onGlobalTouchEnd(e): boolean {
if (this.touchBeginWithSelf && !this.touchOut) {
this.onClick.invoke();
}
this.touchBeginWithSelf = false;
this.changeTexture(this.upRes);
return super.onGlobalTouchEnd(e);
}
changeTexture(res?) {
......
......@@ -68,7 +68,7 @@ export default class ScrollView extends InteractComponent {
this._lastPos.setXY(tx, ty);
}
onGlobalTouchMove(e) {
onGlobalTouchMove(e): boolean {
super.onGlobalTouchMove(e);
if (!this._beginPos) {
......@@ -115,7 +115,7 @@ export default class ScrollView extends InteractComponent {
this._lastPos.setXY(x, y);
}
onGlobalTouchEnd(e) {
onGlobalTouchEnd(e): boolean {
super.onGlobalTouchEnd(e);
if (!this._beginPos) {
......
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