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

Quick Rescale loses Current Page #3

Closed
wbrenna opened this issue Aug 20, 2013 · 3 comments
Closed

Quick Rescale loses Current Page #3

wbrenna opened this issue Aug 20, 2013 · 3 comments
Labels

Comments

@wbrenna
Copy link
Contributor

wbrenna commented Aug 20, 2013

If you quickly zoom in/out the current page will be lost and the document view will switch to the first page.

@wbrenna
Copy link
Contributor Author

wbrenna commented Sep 14, 2013

I think this is a tricky bug. It looks like because the fireZoomChanged call in ZoomControl cannot lock the document, in some cases the zoom updates before the XournalView is able to find the current page and keep aligned to its top.

This might be able to be mitigated by locking the document frequently in the XournalView updater, or it might be fixed by scrolling within the ZoomControl as well.

@wbrenna
Copy link
Contributor Author

wbrenna commented Sep 14, 2013

I believe I was mistaken about this. While the above is still plausible it looks like the main player is a bug where if the zoom is greater than the "fit" zoom (i.e. pages are greater than the width of the window), the getCurrentPage tends to return zero, the start of the document.

@wbrenna
Copy link
Contributor Author

wbrenna commented Sep 14, 2013

Appears to have been a simple bug - a typo "y" should be "x" in Layout.cpp.

wbrenna added a commit that referenced this issue Sep 14, 2013
@wbrenna wbrenna closed this as completed Sep 14, 2013
andreasb242 pushed a commit that referenced this issue Apr 21, 2015
Fixed last save path when "Recent documents" is chosen in Open dialog. Rewritten recent documents with strings and paths.
andreasb242 pushed a commit that referenced this issue Nov 22, 2018
markromanmiller added a commit to markromanmiller/xournalpp that referenced this issue Dec 20, 2019
Febbe added a commit to Febbe/xournalpp that referenced this issue Jan 7, 2020
@yasmah74 yasmah74 mentioned this issue May 18, 2023
@rschram rschram mentioned this issue Oct 26, 2023
@dh2pp dh2pp mentioned this issue Jan 17, 2024
@manu-vm manu-vm mentioned this issue Feb 9, 2024
@majorace majorace mentioned this issue Apr 9, 2024
@01-1 01-1 mentioned this issue Apr 20, 2024
@IlyaSulli IlyaSulli mentioned this issue May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant