From 8f886854f2b2bb2a18beb284a9e45f2c75d3d7a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 01:52:46 +0000 Subject: [PATCH] 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 --- ubuntu-based-kiosk-v1.0.2.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ubuntu-based-kiosk-v1.0.2.sh b/ubuntu-based-kiosk-v1.0.2.sh index f05f692..09c33bd 100644 --- a/ubuntu-based-kiosk-v1.0.2.sh +++ b/ubuntu-based-kiosk-v1.0.2.sh @@ -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