Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add this snippet as the first line of the following functions
- function selectTargetTab(e){
- if( Modernizr && Modernizr.touch ) { return; } //add this - some devices were capturing mouse events with touch
- //... rest of function
- }
- function deselectTargetTab(e){
- if( Modernizr && Modernizr.touch ) { return; }
- //... rest of function
- }
- // And then change this line in function selectTargetTabTouch(e){}
- if( el.is("a") || el.is("button") || el.is("input") )
- // To this
- if( target.is("a") || target.is("button") || target.is("input") )
- //This works in my tests but without access to the site files I can't guarantee this will fix it (although I don't see why not)
Advertisement
Add Comment
Please, Sign In to add comment