Bug 402259 - Animated scrolling: Search ignores going back during animation
Summary: Animated scrolling: Search ignores going back during animation
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.6.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-17 20:52 UTC by magnus.gross21
Modified: 2020-11-23 21:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.11.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description magnus.gross21 2018-12-17 20:52:24 UTC
SUMMARY

When you search for something in Okular and press Enter to go to the next result, the animation will not follow, if you go back to the last result during the animation.


STEPS TO REPRODUCE
1. Search for something, where two search results appear on different pages, such that the search results are not both visible at once
2. Once Okular has found the first search result, press Enter to get to the second result
3. During the scroll animation, press Shift+Enter to get to the first result again

OBSERVED RESULT
Okular finishes the scroll animation to the second result and updates only the highlighting

EXPECTED RESULT
Okular cancels the initial scroll animation and goes back to the first result

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.53.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION

The bug only happens when you switch the search direction during the animation. If you search in the same direction during the animation, it works fine.
Comment 1 Nate Graham 2020-09-11 13:52:13 UTC
Fixed with https://invent.kde.org/graphics/okular/-/commit/e637e2ed519cb2dfe523981b2d6dc34a9855716c in Okular 1.11.2