Bug 487392

Summary: Item selection doesn't reset x or y properly between mouse click and arrow keys
Product: [Applications] dolphin Reporter: Jérôme L <jerome.4a4c+kde>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: jerome.4a4c+kde, kfm-devel, riku
Priority: NOR    
Version: 24.02.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jérôme L 2024-05-22 21:42:41 UTC
SUMMARY
Observed with icons mode and compact mode, but not details mode.

STEPS TO REPRODUCE
1. Open a folder with multiple items (folder/file) such that there are multiple columns and lines of items
2. With the arrow keys, select an item A at (xA, yA)
3. Click on another item B at (xB, yB)
4. Use up or down arrow (for compact mode use left/right arrow, see additional information)

OBSERVED RESULT
4. The selected item is (xA,yB-1) or (xA,yB+1)

EXPECTED RESULT
4. The selected item is (xB,yB-1) or (xB,yB+1)

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Compact mode is a translation of icons mode, so use left/right arrows and invert x and y.
Changing the width of the window (even by 1 pixel) before 4. correctly reset the position, so the expected result occurs.