Fix issue with passive event listeners via jQuery

This commit is contained in:
Nariman Jelveh committed 2024-05-03 20:21:26 -07:00
1 parent ecd9d5493f
commit 6bef35b406
2 files changed
+31 -2

No files matched your search

+1 -1
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;