mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat: outer drag 、fix new page selection
This commit is contained in:
@@ -124,7 +124,12 @@ const EditorContainer = ({
|
||||
return (
|
||||
<StyledEditorContainer
|
||||
lockScroll={lockScroll}
|
||||
ref={scrollContainerRef}
|
||||
ref={ref => {
|
||||
scrollContainerRef.current = ref;
|
||||
if (editorRef.current?.scrollManager) {
|
||||
editorRef.current.scrollManager.scrollContainer = ref;
|
||||
}
|
||||
}}
|
||||
onScroll={onScroll}
|
||||
>
|
||||
{pageId ? (
|
||||
|
||||
Reference in New Issue
Block a user