$(function(){var n=!1;$(".carousel").each(function(){var t=new Hammer(this);t.on("swipeleft swiperight release",function(e){"swipeleft"===e.type&&(n=!0,$(t.element).carousel("next")),"swiperight"===e.type&&(n=!0,$(t.element).carousel("prev"))})}),$(document).on("click",function(e){n&&(e.stopPropagation(),e.preventDefault()),n=!1})});