CarouFredSel Plugin using TouchSwipe with links not working

后端 未结 6 1231
梦谈多话
梦谈多话 2021-02-01 23:53

I\'m using the awesome CarouFredSel JQuery carousel plugin which includes features for integrating the JQuery TouchSwipe library for handheld devices as well.

The caro

6条回答
  •  忘掉有多难
    2021-02-02 00:21

    Touchswipe is disabled by default for a elements.

    See http://labs.rampinteractive.co.uk/touchSwipe/demos/Excluded_children.html

    From the link: By default the value of $.fn.swipe.defaults.excludedElements is "button, input, select, textarea, a, .noSwipe, " To replace or clear the list, re set the excludedElements array. To append to it, do the following (dont forget the proceeding comma) ...

    excludedElements:$.fn.swipe.defaults.excludedElements+", #some_other_div" });
    

    I ended up just changing the defaults in the plugin, since all my modals were children of an anchor element.

    excludedElements:"button, input, select, textarea, .noSwipe"
    

提交回复
热议问题