googlearchive/polymer-gestures

Track event x and y coordinates are undefined

Opened this issue · 0 comments

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 ?