Skip to content

fix/editor scroll large doc#61

Merged
highvoltag3 merged 1 commit intomainfrom
fix/editor-scroll-large-doc
Apr 5, 2026
Merged

fix/editor scroll large doc#61
highvoltag3 merged 1 commit intomainfrom
fix/editor-scroll-large-doc

Conversation

@highvoltag3
Copy link
Copy Markdown
Owner

Multi-block highlight effect depended on code and called revealLineInCenterIfOutsideViewport for the selected block's start line each time. Below the fold, that start is above the viewport, so Monaco scrolled up on every edit.

Reveal the block start only when the selected block index or block count changes (e.g. switching blocks), not when only the document text changes.

Closes #54

Multi-block highlight effect depended on `code` and called
revealLineInCenterIfOutsideViewport for the selected block's start line
each time. Below the fold, that start is above the viewport, so Monaco
scrolled up on every edit.

Reveal the block start only when the selected block index or block count
changes (e.g. switching blocks), not when only the document text changes.

Closes #54
@highvoltag3 highvoltag3 self-assigned this Apr 5, 2026
@highvoltag3 highvoltag3 added the ready for next release This item is ready to be released label Apr 5, 2026
@appwrite
Copy link
Copy Markdown

appwrite Bot commented Apr 5, 2026

Mermalaid

Project ID: mermalaid

Sites (1)
Site Status Logs Preview QR
 Mermalaid
mermalaid
Ready Ready View Logs Preview URL QR Code

Tip

Dynamic API keys are generated automatically for each function execution

@highvoltag3 highvoltag3 marked this pull request as ready for review April 5, 2026 01:54
@highvoltag3 highvoltag3 merged commit 2c93b7c into main Apr 5, 2026
3 checks passed
@highvoltag3 highvoltag3 deleted the fix/editor-scroll-large-doc branch April 5, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for next release This item is ready to be released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When there's a large block typing sometimes scrolls the editor to the top

1 participant