mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-15 23:18:09 +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
45
client/src/store/settings.ts
Normal file
45
client/src/store/settings.ts
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
import { atom } from 'recoil';
|
||||
|
||||
type TOptionSettings = {
|
||||
showExamples?: boolean;
|
||||
isCodeChat?: boolean;
|
||||
};
|
||||
|
||||
const abortScroll = atom<boolean>({
|
||||
key: 'abortScroll',
|
||||
default: false,
|
||||
});
|
||||
|
||||
const optionSettings = atom<TOptionSettings>({
|
||||
key: 'optionSettings',
|
||||
default: {},
|
||||
});
|
||||
|
||||
const showPluginStoreDialog = atom<boolean>({
|
||||
key: 'showPluginStoreDialog',
|
||||
default: false,
|
||||
});
|
||||
|
||||
const showAgentSettings = atom<boolean>({
|
||||
key: 'showAgentSettings',
|
||||
default: false,
|
||||
});
|
||||
|
||||
const showBingToneSetting = atom<boolean>({
|
||||
key: 'showBingToneSetting',
|
||||
default: false,
|
||||
});
|
||||
|
||||
const showPopover = atom<boolean>({
|
||||
key: 'showPopover',
|
||||
default: false,
|
||||
});
|
||||
|
||||
export default {
|
||||
abortScroll,
|
||||
optionSettings,
|
||||
showPluginStoreDialog,
|
||||
showAgentSettings,
|
||||
showBingToneSetting,
|
||||
showPopover,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue