revert: restore v1.0.0 touch handler approach for two-finger swipe
capture:true and --touch-events=enabled were added to handle Authelia's login page blocking touch events. Authelia now auto-logs in on startup so the login page never shows. Reverting to the v1.0.0 approach (passive:true only, no --touch-events flag) which had working two-finger swipe. https://claude.ai/code/session_01EyjEQLWbTXcZgbMDarf7NU
This commit is contained in:
@@ -7172,7 +7172,7 @@ window.addEventListener('DOMContentLoaded',()=>{
|
||||
touchStartTime=Date.now();
|
||||
fingerCount=e.touches.length;
|
||||
}
|
||||
},{passive:true,capture:true});
|
||||
},{passive:true});
|
||||
|
||||
document.addEventListener('touchend',e=>{
|
||||
if(e.changedTouches.length>=1){
|
||||
@@ -7208,7 +7208,7 @@ window.addEventListener('DOMContentLoaded',()=>{
|
||||
});
|
||||
}
|
||||
}
|
||||
},{passive:true,capture:true});
|
||||
},{passive:true});
|
||||
|
||||
// Show pause button on user interaction (for rotation sites only)
|
||||
let lastUserInteraction=0;
|
||||
@@ -7303,7 +7303,6 @@ done
|
||||
exec node_modules/electron/dist/electron . \
|
||||
--no-sandbox --disable-gpu-sandbox --disable-dev-shm-usage \
|
||||
--enable-features=UseOzonePlatform --ozone-platform=x11 \
|
||||
--touch-events=enabled \
|
||||
--enable-audio-service-sandbox=false --autoplay-policy=no-user-gesture-required \
|
||||
2>&1 | tee -a /home/kiosk/electron.log
|
||||
LAUNCHER
|
||||
@@ -9190,7 +9189,7 @@ window.addEventListener('DOMContentLoaded',()=>{
|
||||
touchStartTime=Date.now();
|
||||
fingerCount=e.touches.length;
|
||||
}
|
||||
},{passive:true,capture:true});
|
||||
},{passive:true});
|
||||
|
||||
document.addEventListener('touchend',e=>{
|
||||
if(e.changedTouches.length>=1){
|
||||
@@ -9233,7 +9232,7 @@ window.addEventListener('DOMContentLoaded',()=>{
|
||||
});
|
||||
}
|
||||
}
|
||||
},{passive:true,capture:true});
|
||||
},{passive:true});
|
||||
|
||||
// Optional: Auto-show on text field focus (can be disabled)
|
||||
let autoShowEnabled = true; // Set to false to disable auto-show
|
||||
|
||||
Reference in New Issue
Block a user