benmajor / jQuery-Touch-Events

A collection of mobile event plugins for jQuery.
MIT License
699 stars 225 forks source link

Excluding an element #148

Closed jmscott55 closed 6 years ago

jmscott55 commented 6 years ago

If swiping on 'body' for example is there a way to exclude an element from triggering the swipe. :not and .not do not seem to function.

benmajor commented 6 years ago

Why would you need to do that? What's wrong with using the e.target in the callback function?

jmscott55 commented 6 years ago

Yes... I wrote prematurely. e.target is very effective. Thanks.