Fix issue with passive event listeners via jQuery

This commit is contained in:
Nariman Jelveh
2024-05-03 20:21:26 -07:00
parent ecd9d5493f
commit 6bef35b406
2 changed files with 31 additions and 2 deletions

View File

@@ -972,7 +972,7 @@ async function UIDesktop(options){
}
}
$(el_desktop).on('mousedown touchstart', function(e){
$(el_desktop).on('mousedown touchstart', { passive: true }, function(e){
// dimiss touchstart on regular devices
if(e.type==='taphold' && !isMobile.phone && !isMobile.tablet)
return;