Commit 855b04e7 authored by rockyl's avatar rockyl

修改callOnNextTick方法,不去重

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