Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: add scroll margin & threshold props (#7292)

01zulfiac8c63526b48
diff --git a/packages/editor/src/index.ts b/packages/editor/src/index.ts
index 951732507..f74746389 100644
--- a/packages/editor/src/index.ts
+++ b/packages/editor/src/index.ts
@@ -179,7 +179,9 @@ const useTiptap = (
() => ({
enableCoreExtensions: false,
editorProps: {
- ...editorProps
+ ...editorProps,
+ scrollMargin: 50,
+ scrollThreshold: 50
},
extensions: [
...CoreExtensions,