pukhalski / tap

1Kb library for easy unified handling of user interactions such as mouse, touch and pointer events.
https://github.com/pukhalski/tap/archive/master.zip
MIT License
527 stars 45 forks source link

d.preventDefault is not a function #34

Open a6051529 opened 9 years ago

a6051529 commented 9 years ago

when I write" $('.xxx').on('tap', function(){ // dosmothing; return false; }) " it's d.preventDefault is not a function;

ezhlobo commented 9 years ago

@a6051529 I can't reproduce. Please share your example (via jsbin.com or jsfiddle.net).

pukhalski commented 9 years ago

@a6051529, here's your case: http://jsfiddle.net/5ffwgLj6/2/.

Works perfectly in all the modern browsers. Could you please update us with the info on the browser/OS/device you're testing on?

Thanks.

a6051529 commented 9 years ago

@pukhalski @ezhlobo I use zepto.js for seajs,The seajs is an AMD Module Loader,When I use zepto.js not zepto.js for seajs ,it is OK!,When I use zepto.js for seajs, It is d.preventDefault is not a function;

pukhalski commented 9 years ago

Thanks, @a6051529, for a very specific case. Let me check it out.

a6051529 commented 9 years ago

@pukhalski Thanks, very much

jsor commented 8 years ago

I've discovered the same error when enabling touch events in the Firefox Developer Edition's Responsive Design Mode.

pukhalski commented 8 years ago

@jsor, what version do you use?

@ezhlobo, could you please advise?

jsor commented 8 years ago

tapjs@1.0.7 from npm (1.0.8 isn't available yet), Firefox 46.0a2 (2016-03-07).