Changeset cbfbf88 in Klonkt for src/views/shell.ejs

Timestamp:
06/19/2026 12:06:00 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
f8e8f9e
Parents:
5f7dba2
Message:

fix(editor): no view jump on formatting button — hold scroll position

execCommand/insert scrolls the caret into view by default → the view
jumps when clicking bold/italic/quote/code. keepScroll() saves and
restores the scroll position (window + editor, sync + after 1 frame)
around execCmd/wrapCode/toggleBlockquote. The user now scrolls manually.

Co-Authored-By: Claude <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.