I can re-create the issue in 3.6.2 as well (only in the rich text editor)
What appears to be happening is that it's scrolling to the cursor position and not the heading that you clicked on, steps to re-create:
- Switch to rich text editor
- Left click somewhere in document to place the cursor
- Scroll up to the top of the document
- Click a heading
- It will then scroll to wherever you placed the cursor in step 2 (not to the heading)
Edit: I submitted a pr with a fix for this: Fix: scroll to heading (and scroll to top) in rich text editor, Fixes #114 by bwat47 · Pull Request #115 · cqroot/joplin-outline