Skip to content

Commit

Permalink
fix(ripple): fix ripple in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Nov 24, 2018
1 parent 378b576 commit 8aab7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/src/ripple/ripple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Ripple {
private _triggerElement?: HTMLElement
) {
if (Platform.isBrowser) {
if (typeof PointerEvent === 'function' && !!TouchEvent) {
if (typeof PointerEvent === 'function' && typeof TouchEvent === 'function') {
this._eventHandlers.set('pointerdown', this.onPointerDown.bind(this));
} else {
this._eventHandlers.set('mousedown', this.onPointerDown.bind(this));
Expand Down

0 comments on commit 8aab7d5

Please sign in to comment.