Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created April 16, 2019 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmoreira/ba051efd2b8687e1b371a36524eab69d to your computer and use it in GitHub Desktop.
Save carmoreira/ba051efd2b8687e1b371a36524eab69d to your computer and use it in GitHub Desktop.
Workaround to allow links to be clicked inside bxslider ( error: Added non-passive event listener to a scroll-blocking 'touchstart' event. )
jQuery('html').on('mousedown', '.bx-viewport a', function() {
var url = jQuery(this).attr('href');
if( url !== ''){
window.open( url, jQuery(this).attr('target') );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment