From 5abd32495fb94a0e3b79ebf65ac64c6435c3cb7a Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Sun, 5 Jun 2016 22:35:22 +0200 Subject: [PATCH] Fix conflict between touchswipe and colorbox (closes #201) The touchswipe action on tap was closing the colorbox window when it should not (when viewing a video file). --- sigal/themes/colorbox/templates/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sigal/themes/colorbox/templates/index.html b/sigal/themes/colorbox/templates/index.html index 471825c..4174ea8 100644 --- a/sigal/themes/colorbox/templates/index.html +++ b/sigal/themes/colorbox/templates/index.html @@ -154,7 +154,9 @@ }, tap:function(event, target){ $.colorbox.close() - }}).unbind("click"); + }, + excludedElements: $.fn.swipe.defaults.excludedElements + ", #colorbox" + }).unbind("click"); }); {% endif %}