Tested on Chromium84/86, Stylus version
@tophf In the multi-section editor, it seems that these problems are caused by a recent commit of master,
explore through repeated investigations...... At first I thought it was related to the editor height, further investigation finally found the reason for the recurrence of the bug:
scroll-snap-* modules to describe it,scroll-margin-top: ⩾ -*px ⩽ 22px , will trigger bugs,
Usually we scrolling editor for scroll-margin-top: ≋0px , but then will trigger more than 2 weird bugs, e.g. :
Ctrl-Pause , cannot toggle-Editor-Focus normally, It always goes to focus the first section-editor, can’t go back to the last active-section-editor at all.Ctrl-F (i.e. when body.find-open) , can't jump find-Next normally, i.e. will also jump the first or second section-editor.
Gif demo: search Bugs

@-moz-document url-prefix("chrome-extension://clngdbkpkpeebahjckkjfobafhncgmne/edit.html"), url-prefix("chrome-extension://apmmpaebfobifelkijhaljbmpcgbjbdo/edit.html") {
/* Debug: Borrow CSS to quickly/automatically reproduce/Debug this problem */
html {scroll-snap-type:y}
/* when scrolling the active-editor, will automatically snap 3px */
.CodeMirror-active {scroll-snap-align:start;scroll-margin-top:3px}
.CodeMirror-scroll {overscroll-behavior:contain}
}
If can't reproduce the problem, I will explain further...
Update: with the help of this CSS code, the specific range accurately calculated is ⩽22px
⩽0px , In other words is as long as ⩾0px , no problem, it will can be used normally.
No any problem with
scroll-margin-top: ⩾23px
html {scroll-snap-type:y}
/* when scrolling the active-editor, will automatically snap 3px */
.CodeMirror-active {scroll-snap-align:start;scroll-margin-top:3px}
@tophf Excuse me ! Don't know if you can reproduce/copy this Bugs?
You seem to be spoilt by my fast handling of issues but this is not normal. Normally it takes weeks, months, or even years. I'm working on different things now so I'll look into this later.
Should be fixed in 26a539bd.
Most helpful comment
Should be fixed in 26a539bd.