Skip to content

Commit

Permalink
fix(tapclick): 300ms click delay
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Apr 6, 2017
1 parent eb9de60 commit 36bbcd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tap-click/tap-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DomController } from '../platform/dom-controller';
import { GestureController } from '../gestures/gesture-controller';
import { Platform } from '../platform/platform';
import { pointerCoord, hasPointerMoved } from '../util/dom';
import { PointerEvents, POINTER_EVENT_TYPE_MOUSE } from '../gestures/pointer-events';
import { PointerEvents, POINTER_EVENT_TYPE_TOUCH } from '../gestures/pointer-events';
import { RippleActivator } from './ripple';
import { UIEventManager } from '../gestures/ui-event-manager';

Expand Down Expand Up @@ -108,7 +108,7 @@ export class TapClick {
this.activator.upAction(ev, activatableEle, this.startCoord);
}
}
if (this.usePolyfill && pointerEventType === POINTER_EVENT_TYPE_MOUSE && this.app.isEnabled()) {
if (this.usePolyfill && pointerEventType === POINTER_EVENT_TYPE_TOUCH && this.app.isEnabled()) {
this.handleTapPolyfill(ev);
}
this.startCoord = null;
Expand Down

0 comments on commit 36bbcd9

Please sign in to comment.