mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-05 12:40:26 -06:00
Fix issue with passive event listeners via jQuery
This commit is contained in:
@@ -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