Table of Contents doesn't go to the right place in the file on the first click

Steps to reproduce

  1. Type sufficient text with several headings
  2. Continue writing the text in any paragraph
  3. Click on the content line to go to the desired section with the heading

Sometimes the table of contents moves only after 2 mouse clicks, sometimes it works after the first one.
Sometimes he flips to a random place (failed to record on video)


Additional information

you didn’t fill the bug report template in full.

Does it happen in source mode?
Does it happen if you break your long lines in multiple lines?