Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking on a link to a heading or on a task does not always scroll to the right position #1617

Open
Nick222 opened this issue Sep 24, 2021 · 7 comments

Comments

@Nick222
Copy link
Contributor

Nick222 commented Sep 24, 2021

By clicking on a link to a place or heading in a note, you simply go to the note - not to the given heading or the given place of the link.

Xubuntu 21.04
Zim 0.74.1

(I think - it is bug?)

@jaap-karssenberg
Copy link
Member

jaap-karssenberg commented Sep 29, 2021 via email

@Nick222
Copy link
Contributor Author

Nick222 commented Sep 29, 2021

Zim version 2021-09-28:

Pages without any objects - and with objects - both

  • link to heading - OK - except if this heading is nearly end of note
  • link to special place (##note) - OK - except if this place is nearly end of note

And - can user create link on object - and how? What it is "object id" - as write in manual?

@jaap-karssenberg
Copy link
Member

jaap-karssenberg commented Sep 29, 2021 via email

@Nick222
Copy link
Contributor Author

Nick222 commented Sep 29, 2021

OK = work good (going to right place)

@jaap-karssenberg jaap-karssenberg modified the milestones: 0.74.2, 0.74.3 Oct 11, 2021
@aqeeliz
Copy link

aqeeliz commented Dec 6, 2021

Same issue here. On Arch Linux, zim-wiki version 0.74.2

If I make a link to heading on same page #some-heading, it works fine.

When linking "Some Heading" from some other page, :SomePage#some-heading, it opens SomePage, but doesn't scroll down to the heading. It takes the cursor to correct place though, so if you press "up" or "down" on keyboard, you scroll to right place.

I have tried on three different pages, I get the above mentioned issue on 2 pages, both of these pages only have headings and bullet lists (they are very long pages).

Linking to heading works fine on a small page though, and this page also has images and diagrams in it.

@sojusnik
Copy link
Contributor

sojusnik commented Dec 6, 2021

Happens here as well on Ubuntu 21.10 with 0.74.2.

It seems that the longer the page, the larger the offset.

Could be connected to
#611
#770

@jaap-karssenberg jaap-karssenberg modified the milestones: 0.74.3, 0.74.4 Dec 7, 2021
@jaap-karssenberg
Copy link
Member

No, it is not related to the two issues quoted above.

Interestingly this only happens when switching to a new page. It does not happen only for links to headings, but also when e.g. clicking on a task in the side pane. This means it is behavior related to the "scroll on screen" generic function. But if the page is shown and I click again the same tasks, it does scroll correctly. So seems to be a timing issue between rendering the new page and scrolling. Tried fixing it with a callback on a timer, but that didn't help :(

@jaap-karssenberg jaap-karssenberg changed the title Рroblem of going to the place of the link Clicking on a link to a heading or on a task does not always scroll to the right position Dec 9, 2021
@jaap-karssenberg jaap-karssenberg modified the milestones: 0.74.4, Next Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants