Skip to content

Commit

Permalink
[ci skip] fix closure warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jul 18, 2017
1 parent 50bf45c commit 2e7dc00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -913,14 +913,14 @@
},
/**
* @this {GestureRecognizer}
* @param {Event} e
* @param {Function} preventer
* @param {Event | Touch} e
* @param {Event=} preventer
*/
forward: function(e, preventer) {
let dx = Math.abs(e.clientX - this.info.x);
let dy = Math.abs(e.clientY - this.info.y);
// find original target from `preventer` for TouchEvents, or `e` for MouseEvents
let t = Gestures._findOriginalTarget(preventer || e);
let t = Gestures._findOriginalTarget(/** @type {Event} */(preventer || e));
// dx,dy can be NaN if `click` has been simulated and there was no `down` for `start`
if (isNaN(dx) || isNaN(dy) || (dx <= TAP_DISTANCE && dy <= TAP_DISTANCE) || isSyntheticClick(e)) {
// prevent taps from being generated if an event has canceled them
Expand Down

0 comments on commit 2e7dc00

Please sign in to comment.