always add touch events

This commit is contained in:
Adam Bradley
2015-12-07 10:14:30 -06:00
parent 8a98337133
commit 119cbcd87f

View File

@ -33,11 +33,9 @@ export class TapClick {
zone.runOutsideAngular(() => {
addListener('click', self.click.bind(self), true);
if (self.usePolyfill) {
addListener('touchstart', self.touchStart.bind(self));
addListener('touchend', self.touchEnd.bind(self));
addListener('touchcancel', self.pointerCancel.bind(self));
}
addListener('mousedown', self.mouseDown.bind(self), true);
addListener('mouseup', self.mouseUp.bind(self), true);