mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
fix: Allow Mobile Scroll During Message Stream (#984)
* fix(Icon/types): pick types from TMessage and TConversation * refactor: make abortScroll a global recoil state and change props/types for useScrollToRef * refactor(Message): invoke abort setter onTouchMove and onWheel, refactor(Messages): remove redundancy, reset abortScroll when scroll button is clicked
This commit is contained in:
parent
5d4b168df5
commit
7c0379ba51
7 changed files with 55 additions and 50 deletions
|
|
@ -8,7 +8,7 @@ import submission from './submission';
|
|||
import search from './search';
|
||||
import preset from './preset';
|
||||
import lang from './language';
|
||||
import optionSettings from './optionSettings';
|
||||
import settings from './settings';
|
||||
|
||||
export default {
|
||||
...conversation,
|
||||
|
|
@ -21,5 +21,5 @@ export default {
|
|||
...search,
|
||||
...preset,
|
||||
...lang,
|
||||
...optionSettings,
|
||||
...settings,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ type TOptionSettings = {
|
|||
isCodeChat?: boolean;
|
||||
};
|
||||
|
||||
const abortScroll = atom<boolean>({
|
||||
key: 'abortScroll',
|
||||
default: false,
|
||||
});
|
||||
|
||||
const optionSettings = atom<TOptionSettings>({
|
||||
key: 'optionSettings',
|
||||
default: {},
|
||||
|
|
@ -31,6 +36,7 @@ const showPopover = atom<boolean>({
|
|||
});
|
||||
|
||||
export default {
|
||||
abortScroll,
|
||||
optionSettings,
|
||||
showPluginStoreDialog,
|
||||
showAgentSettings,
|
||||
Loading…
Add table
Add a link
Reference in a new issue