From ebdf373f0d70677d55af983896ef26dd71cdcf45 Mon Sep 17 00:00:00 2001 From: "Cahill, Robbie" Date: Tue, 22 May 2018 14:51:09 +1000 Subject: [PATCH] Fix untappable links #1203 --- src/js/jquery.bxslider.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/jquery.bxslider.js b/src/js/jquery.bxslider.js index 8a039aa9..8e13a2b8 100644 --- a/src/js/jquery.bxslider.js +++ b/src/js/jquery.bxslider.js @@ -1106,7 +1106,11 @@ if (e.type !== 'touchstart' && e.button !== 0) { return; } - e.preventDefault(); + + if (e.srcElement.href === undefined) { // Dont stop links being tapped + e.preventDefault(); + } + //disable slider controls while user is interacting with slides to avoid slider freeze that happens on touch devices when a slide swipe happens immediately after interacting with slider controls slider.controls.el.addClass('disabled');