Skip to content

Commit

Permalink
Fix untappable links stevenwanderski#1203
Browse files Browse the repository at this point in the history
  • Loading branch information
Cahill, Robbie authored and Cahill, Robbie committed May 22, 2018
1 parent a26c6d9 commit ebdf373
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/jquery.bxslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit ebdf373

Please sign in to comment.