Scroll Lock Store
Manages app lock state and grace period functionality.
This object handles:
- Lock state: Tracks when apps are locked and until when
- Grace period: Manages one-minute unlock feature
- Cooldown tracking: Detects when cooldown period ends
Lock behavior:
- When user scrolls too long, app gets locked for a duration (default 15 minutes)
- User can use "one-minute unlock" once per lock period
- After cooldown ends, user gets notified that app is unlocked
See also
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the remaining lock time in milliseconds.
Link copied to clipboard
Checks if the one-minute unlock grace period is still available.
Link copied to clipboard
Sets a lock on the app for the specified duration.
Link copied to clipboard
Starts a one-minute unlock grace period. Can only be used once per lock period.
Link copied to clipboard
Returns true ONCE right after cooldown ended (to show “App unlocked…” overlay).