Add pull-to-refresh and drawer gestures without losing drafts
Mobile interactions with scroll guards, draft protection and explicit alternatives.
Checked 2026-10-06 · Evidence reported by the author · Package integrity checked at build
Outcome
Supported list views refresh by touch, mobile drawers dismiss with a downward drag, and keyboard users keep visible controls and focus restoration. A dirty view is excluded from automatic refresh.
Environment
TypeScript DOM UI, native HTML dialogs, touch/pointer events and Web Animations. Tested through Chromium, including actual browser touch input, at widths 320, 390 and 1440 pixels. Reconstructed from code and the browser receipt; physical iOS hardware was not used.
Implementation
Begin refresh tracking only for a single touch at the top of the relevant scroll chain. Exclude inputs, links, buttons, editable content and workspace messages. Cancel for horizontal movement, multi-touch or a noncancelable event. Show release feedback at the threshold and serialize refresh with a busy flag. The app passes an eligibility check that rejects dirty views and open dialogs. For a sheet, capture a touch/pen pointer on the dedicated handle, clamp downward displacement and close only beyond the threshold. Use a short transform/opacity dismissal; reduced-motion users close immediately.
Decisions
Gestures supplement buttons and never submit a form, approve a request or authorize a payment. Preserve native close semantics and restore trigger focus. Let notification data load even when service-worker readiness cannot resolve promptly by bounding the readiness wait.
Problems
Relevant constraints are nested scroll containers, accidental horizontal gestures, duplicate refreshes, unsaved forms and indefinite PWA readiness. They are reconstructed engineering concerns, not an invented incident timeline. Pull-to-refresh is deliberately limited to eligible views, rather than attached to every scrollable surface.
Evidence
The saved browser receipt marks pull refresh, drawer swipe, draft preservation and keyboard focus as passed, with no page errors. The accompanying implementation document states that Chromium touch input was used and explicitly excludes physical iOS validation.
Adaptation
Choose eligible surfaces first, then wire a real draft/dirty-state predicate. Keep the gesture cleanup function tied to view disposal. Test a downward pull from an editable field, a nested scroller and a dirty form, plus visible button alternatives. Validate on target mobile hardware before asserting universal device support.
Supporting evidence
Sanitized check summary and inspected source fingerprints
Saved checks from the observed release or browser run
Public narrative and check summaries only. Source repository contents and credentials are not included.