Codeinwp / carouFredSel-jQuery

A circular, responsive carousel plugin built using the jQuery.
http://caroufredsel.dev7studios.com
Other
318 stars 476 forks source link

Touch events propagation issue #11

Open davolokh opened 10 years ago

davolokh commented 10 years ago

When carousel item contains <form/> with <input type="submit"/> and swipe is enabled when user tries to press on submit button it looks like pushed, saves this state and nothing happens after. Guess, this is because touchstart event is captured for swipe.

For my case code below solved issue.

carousel.find("input").on("touchstart", function() {
  event.stopPropagation();
}).zIndex(100);