Last 12 weeks · 0 commits
2 of 6 standards met
iOS Safari 11.3+ defaults touchmove listeners on document/body to passive, silently ignoring preventDefault(). This caused the native elastic overscroll to leak through despite the app's custom scroll implementation. Changes: Add overscroll-behavior: none on html/body and #wrapper to disable native overscroll bounce via CSS (supported since iOS Safari 16) Add touch-action: none on body and #wrapper to tell the browser not to handle any default touch gestures Set html to position: fixed to lock the viewport on iOS Safari Use addEventListener with { passive: false } instead of Zepto .on() for the touchmove prevention listener, ensuring preventDefault() is actually honored Add viewport-fit=cover to viewport meta for notched devices https://claude.ai/code/session_01QJx2mW2xD7CvJMQNddUTGo
Repository: yyx990803/HTML5-Clear-v2. Description: HTML5 Clear version 2 Stars: 954, Forks: 228. Primary language: JavaScript. Languages: JavaScript (91.2%), Less (6.4%), Shell (1.4%), HTML (1.1%). Homepage: http://clear.evanyou.me Open PRs: 1, open issues: 1. Last activity: 3y ago. Community health: 42%. Top contributors: yyx990803, hurtubise.