diff --git a/src/scrollpastend.ts b/src/scrollpastend.ts index 5bc0f0f..79d1e80 100644 --- a/src/scrollpastend.ts +++ b/src/scrollpastend.ts @@ -7,7 +7,7 @@ const plugin = ViewPlugin.fromClass(class { update(update: ViewUpdate) { let {view} = update - let height = view.viewState.editorHeight * view.scaleY - + let height = view.viewState.editorHeight - view.defaultLineHeight - view.documentPadding.top - 0.5 if (height >= 0 && height != this.height) { this.height = height