Bug 402259

Summary: Animated scrolling: Search ignores going back during animation
Product: [Applications] okular Reporter: magnus.gross21
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: 4aa7f31e, aacid, nate
Priority: NOR    
Version: 1.6.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 1.11.2

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