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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user