googlearchive / polymer-gestures

84 stars 27 forks source link

Cannot call preventDefault on the `on-up` event #18

Closed mattyclarkson closed 10 years ago

mattyclarkson commented 10 years ago

I have the following helper function:

cancelEvent: function(e) {
  if (e.preventTap) {e.preventTap();} 
  e.preventDefault();
  e.stopPropagation();
},

When I call it in firefox and IE with the result of a on-up event I get the following error:

TypeError: 'preventDefault' called on an object that does not implement interface Event.

If I change the event to on-tap then the exception is no-longer thrown. Using 0.3.3.

I can create a reduced test case if you are interested, but if this is something that you think will naturally get fixed by the progression of the project then you can close.