Enhancement: Disable Pull-to-Refresh on Mobile to Prevent Accidental Chat Reloads #8765
evandrocoan
started this conversation in
Feature Requests & Suggestions
Replies: 1 comment
-
I would not say this is a bug, maybe you can make it a configurable setting instead? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
On mobile browsers, the native "pull-to-refresh" gesture can be triggered accidentally when scrolling near the top of the page. In LibreChat, this action reloads the entire application, which can unexpectedly start a new chat or refresh the current one. This behavior is disruptive and can cause users to lose their conversation context. Disabling this non-essential gesture would improve the mobile user experience significantly.
Steps to Reproduce:
Expected Behavior:
The page should not react to the overscroll gesture. The view should remain static, perhaps showing a slight visual "bounce" (the browser default for reaching a scroll limit), but it should not trigger a page refresh.
Actual Behavior:
The browser's native pull-to-refresh action is initiated, reloading the entire web page. This either navigates the user to a new, empty chat or reloads the existing conversation, interrupting the user's flow.
Environment:
Proposed Solution:
This can be resolved by applying a single CSS rule to the main body of the application. The
overscroll-behavior-y
property is designed for this exact purpose.Add the following to the global CSS file:
This is the modern, standard method for preventing this behavior and will not interfere with normal scrolling or desktop functionality.
Beta Was this translation helpful? Give feedback.
All reactions