googlearchive / polymer-gestures

84 stars 27 forks source link

Track event x and y coordinates are undefined #87

Open ystreibel opened 9 years ago

ystreibel commented 9 years ago

Hi,

In debug mode on Chrome, in track.js file, they are :

gestureProto.x = inEvent.x; 
gestureProto.y = inEvent.y;

but the inEvent hasn't got x and y properties.

I think to correct this is to change by

gestureProto.x = inEvent.clientX; 
gestureProto.y = inEvent.clientY;

Are you agree with that ?