Summary: | fast scrolling on page number glitches/does not scroll at all | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Bernhard <micraft.b> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | aacid, nate |
Priority: | NOR | Keywords: | regression |
Version First Reported In: | 20.12.1 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Bernhard
2021-01-25 21:09:51 UTC
Probably caused by the smooth scrolling patches "oh no i can't scroll to that new page because i'm already scrolling". Ah yup, can reproduce. That's probably the reason indeed. You can check that by unchecking “use smooth scrolling” in the config dialog. It’s now the first checkbox in that dialog.
The problem is probably that PageView reports “viewport changed” at every scroll step (60Hz), and then the DocumentObserver mechanism reports the new viewport to the page number widget. (Similar to how the viewport is reported to the thumbnails bar.) I. e. exactly this:
> It looks very much like the page number is rapidly reset to the
> currently visible page from the slowly scrolling document.
I just want to throw in that that the problem still exists, and is much worse with most modern high-res touchpads (which support pixel scrolling), because it's almost impossible to "scroll slowly". Touchpads continuously generates scrolling events, they should instead be accumulated until a full "line" has been scrolled instead of trying to scroll a full page for each pixel scrolled |