CSS tip: flip overscroll-behavior default with any-pointer to keep pull-to-refresh on touch devices

jh3yy · x · 2026-09-30

jh3yy shares a frontend nuance: setting overscroll-behavior: none on html kills the bounce/overscroll effect but also disables pull-to-refresh on mobile. The original approach from @witsdev gates the rule behind a (pointer: fine) media query so touch devices keep pull-to-refresh. jh3yy suggests flipping the default with (any-pointer: coarse) instead, which keeps pull-to-refresh working on foldables and other multi-input devices.

Original post →

More from coding & agent

coding & agent channel →