Created
April 16, 2019 22:13
-
-
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. )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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