On my site, i have to tab twice then any link will open, issue is in both safari and chrome.
I have applied Solution ::
jQuery( '.pkg_book-btn-wrapper a' ).on('click touchend touchstart',function(e) { window.location = jQuery(this).attr("href"); e.preventDefault(); });
But it works on some time only.
Also not working scroll when opening link, url like,
www.xyz.com/#book-now
Some time scroll but its goes to footer and anywhere but did not go to prefect id.
Please solve this, i am facing this issue too long time.
Asked
Active
Viewed 28 times
-1
aamir shaikh
- 19
- 4
1 Answers
0
Though, the issue you are facing was not well stated, the tap event conflict is likely to be in your own code. See this answer if it would make a change. It uses a doubletap function;
var mylatesttap;
function doubletap() {
var now = new Date().getTime();
var timesince = now - mylatesttap;
if((timesince < 600) && (timesince > 0)){
// double tap "You can maybe use preventdefault action from here"
}else{
// too much time to be a doubletap
}
mylatesttap = new Date().getTime();
}
yuxufabio
- 37
- 4