946fef220041258243195f258cc6af743bd37587
CRITICAL FIX: Manual swipes to 0-time pages now trigger inactivity prompts. The problem: - User swipes to a 0-time (manual) page but doesn't touch it - userInteractedWithCurrentSite stays false - No inactivity prompt ever appears - Kiosk stuck on that page forever The fix: - Manual swipe now explicitly sets userInteractedWithCurrentSite=true - Swipe counts as engagement with the new page - After inactivity timeout, prompt appears even if user never touched page - Ensures "Return to Rotation" mechanism works on ALL pages Complete flow now works as designed: 1. Normal rotation with duration > 0 sites 2. User interacts with ANY site → rotation pauses 3. After 2min inactivity → prompt appears - "Return to Rotation" → returns to home, resumes rotation - "I'm still here" → waits another 2min, prompt again - Time extension (5/15/30/60 min) → waits that long, prompt again - No response (15 sec) → auto-returns to rotation 4. User swipes to new page → counts as interaction, rotation resumes 5. Media playing → blocks all rotation and prompts (30s grace period) 6. Display schedule → screen blanks, app keeps running 7. Password/lockout → takes precedence on boot/resume/timeout Technical changes: - Lines 4072-4075: Set userInteractedWithCurrentSite=true in nextTab() - Lines 4097-4100: Set userInteractedWithCurrentSite=true in prevTab() - Ensures inactivity logic works even on untouched 0-time pages This completes the comprehensive rotation/inactivity system.
Languages
Shell
94.1%
JavaScript
4.7%
HTML
0.9%
CSS
0.3%