You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A chat too short to scroll still reloads the app on Android Chrome before 144 #427
#413 (v0.3.49) put overscroll-behavior: contain on .chat-view, and a long chat dragged down at its top no longer reloads the app on Android. A chat whose content fits the screen (a new or short conversation) still reloads on Chrome before 144: the drag starts Chrome's pull-to-refresh.
Measured on Android emulators with the v0.3.48 build and the v0.3.49 build side by side, the same touch drag on both (adb shell input swipe, about 1100 px down over 3 s, inside the chat). A reload was counted when a window marker was gone and performance.timeOrigin had changed.
Browser
Chat
v0.3.48
v0.3.49
Chrome 133 (Android 16)
long, scrolled to its top
reloads
does not reload
Chrome 133 (Android 16)
short, nothing to scroll
reloads
reloads (3 of 3)
Chrome 145 (Android 17)
short, nothing to scroll
reloads
does not reload (3 of 3)
Chrome 145 (Android 17)
long, scrolled to its top
not run
does not reload
Controls: 8 s without a gesture did not reload the page, and an upward swipe scrolled the chat, so the touch reached it.
Why
In the short chat .chat-view has scrollHeight == clientHeight. Chrome 133 ignores overscroll-behavior on a scroll container that has nothing to scroll, so the drag chains to the page; html and body are overscroll-behavior: auto. Chrome Platform Status lists 144 as the first version of "Respect overscroll-behavior on non-scrollable scroll containers", which fits what the two emulators showed.
Options
Leave it. Chrome updates itself, so fewer phones are affected over time.
Set overscroll-behavior-y: contain on the page as well. In a page-only experiment on Chrome 133 (one run each, not in any build), setting it on html alone still reloaded, and setting it on html and body did not. This turns pull-to-refresh off for the whole app.
Keep .chat-view scrollable by a pixel, so the older Chrome honours the property there and nowhere else.
Not tested
A real phone, the installed (home-screen) app, and Samsung Internet or other Chromium-based browsers, whose Chromium version can be older than Chrome's. The chats in the test were a shell pane's scrollback, not an agent transcript.
Activity