john-doherty / swiped-events

Adds `swiped` events to the DOM in 1k of pure JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

data-swipe-ignore doesn't work properly

cindro opened this issue · comments

I like to load all my js at the bottom of the page like most people, but data-swipe-ignore is overwritten by the default false value. Below code only works if the js library is loaded before the div.

How can I get the ignore to work when the library is loaded last?

<div data-swipe-ignore="true">
     Swipe area
</div>

Hi @cindro, please can you include an example jsfiddle.net so I can review this quickly?

@cindro data-swipe-ignore is detected during a swipe event, it has nothing to do with how you load the script. I'm closing this as I'm unable to reproduce this, feel free to reopen with a code snippet if this is still an issue