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

Fix flickering page number #647

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Conversation

jdujava
Copy link
Contributor

@jdujava jdujava commented Jul 29, 2024

Previously, when scrolling with dual-page layout positioned in the exact center (for example obtained by best-fit adjustment), the boundary handling could change horizontal alignment in such a way that resulted in flickering of the page number between two visible pages.

This simple fix seems to work, however, I am not sure whether this is the best way. Other suggestions are welcome.

Fixes #646.

Copy link
Member

@sebastinas sebastinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a comment why this is added to the code? Thanks

Previously, when scrolling with dual-page layout positioned in the exact
center (for example obtained by best-fit adjustment), the boundary handling
could change horizontal alignment in such a way that resulted in flickering
of the page number between two visible pages.

Signed-off-by: Jonas Dujava <[email protected]>
Copy link
Member

@sebastinas sebastinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jdujava

@sebastinas sebastinas merged commit 067a460 into pwmt:develop Aug 25, 2024
5 checks passed
@jdujava jdujava deleted the fix-page-num-flicker branch August 25, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flickering page number when scrolling with dual-page layout
2 participants