logseq icon indicating copy to clipboard operation
logseq copied to clipboard

Opening a page will try to "jump" to the vertical position of the previous page

Open Vectorrent opened this issue 2 years ago • 0 comments

What happened?

If you are on a "long" page, and you click on a page reference to another "long" page, the new page will not open at the top. It will open somewhere in the middle.

This generally doesn't happen if the referring page is scrolled all the way to the top, when the new link is clicked.

Reproduce the Bug

  1. Create a page called "test1"
  2. Fill "test1" with a wall of text.
  3. Open another page called "test2"
  4. Fill "test2" with a wall of text.
  5. Somewhere in the middle of "test2", add a [[test1]] reference. Make sure you have to scroll down the page a bit.
  6. Click on the [[test1]] reference.
  7. You will land somewhere in the middle of "test1". You will not land at the top of the page.

Expected Behavior

I would expect a new page to open at the top - not somewhere in the middle.

Screenshots

Here's a video to demonstrate: https://youtu.be/ov4TNhJloS0

Desktop Platform Information

Arch Linux, x11, GTX 1070 Logseq 0.7.6 (from the AUR)

The bug exists in the exported web app, as well.

Mobile Platform Information

No response

Additional Context

No response

Vectorrent avatar Jul 20 '22 17:07 Vectorrent