mirror of
https://github.com/home-assistant/iOS.git
synced 2026-04-12 05:08:23 -05:00
## Summary - Kiosk screensaver idle timer was not resetting on user interaction — `recordKioskActivity()` was defined but never called - WKWebView consumes touch events before UIKit idle detection, so the timer counted down from kiosk activation rather than last touch - Added a tap gesture recognizer on the WebView (`cancelsTouchesInView = false`) to detect taps without interfering with normal interaction - Added `scrollViewWillBeginDragging` delegate hook to detect scroll/drag interactions ## Test plan - [ ] Enable kiosk mode with 30s screensaver timeout - [ ] Tap on the WebView dashboard — idle timer should reset - [ ] Scroll on the dashboard — idle timer should reset - [ ] Stop interacting — screensaver should appear after configured timeout - [ ] Verify normal WebView interaction (taps, links, scrolling) still works normally 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Nick Stefanelli <nstefanelli@users.noreply.github.com>