mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-05 21:46:51 +00:00
Fix issue with passive event listeners via jQuery
This commit is contained in:
1 parent
ecd9d5493f
commit
6bef35b406
2 files changed
+31
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user