fix(tapClick): throttle activated

This commit is contained in:
Adam Bradley
2015-09-28 11:09:50 -05:00
parent 4b7134df34
commit 00756c5596

View File

@ -14,6 +14,7 @@ export class TapClick {
self.pointerTolerance = 4;
self.lastTouch = 0;
self.lastActivated = 0;
self.disableClick = 0;
self.disableClickLimit = 2500;
@ -145,7 +146,13 @@ export class TapClick {
if (activatableEle) {
this.start = pointerCoord(ev);
let now = Date.now();
if (this.lastActivated + 100 < now) {
this.activator.downAction(ev, activatableEle, this.start.x, this.start.y);
this.lastActivated = now;
}
this.moveListeners(true);
} else {