fix: add --touch-events=enabled to Electron launch flags

With --ozone-platform=x11, Chromium defaults touch event detection to
'auto' and may not identify the hardware as a touchscreen, so touchstart/
touchend never fire in the renderer. --touch-events=enabled forces W3C
touch events on unconditionally, restoring two-finger swipe navigation.

https://claude.ai/code/session_01EyjEQLWbTXcZgbMDarf7NU
This commit is contained in:
Claude
2026-06-16 01:16:58 +00:00
parent d595464400
commit f40d8e337c
+1
View File
@@ -7303,6 +7303,7 @@ 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