Bug 359310 - Remember scroll position when going back in FolderView popup
Summary: Remember scroll position when going back in FolderView popup
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (show other bugs)
Version: master
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-12 11:46 UTC by Kai Uwe Broulik
Modified: 2018-10-10 12:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.15.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2016-02-12 11:46:54 UTC
When using FolderView in a popup and you navigate to a subdirectory you can go back pressing the Back button on your mouse anytime. It should remember the scroll position in the previous view if you go back.

Perhaps there even needs to be means to always go back, ie. have the "Up" button sticky or something like that

Reproducible: Always

Steps to Reproduce:
1. Place Folder in your panel
2. Click it, scroll down, navigate to sub folder (I have "Folders first" disabled)
3. Press back mouse button

Actual Results:  
The view goes back and is scrolled to the top, makes quickly traversing multiple subfolders painful

Expected Results:  
The view remembers the scroll position and is where I left it
Comment 1 Alexander Mentyu 2017-12-13 17:52:24 UTC
It will be consistent with Dolphin if will be implemented
Comment 2 Thomas Surrel 2018-10-10 09:50:32 UTC
Git commit 6736bdaa4bbd7c789e0049af4c57717725ac72b2 by Thomas Surrel.
Committed on 10/10/2018 at 09:50.
Pushed by thsurrel into branch 'master'.

[Folder View] Remember selected item when navigating in subfolders

Summary:
When using the folder view in a panel as a popup, being in list view
mode, getting into subfolders and back with arrow keys had a weird
behaviour: the currentItem would just stay the same accross folders.

This patch restores both the proper selected item and the scrolling
position when navigating back.

Test Plan:
- Add a folder view in a panel, configure it in list view mode
- Enter a subfolder and go back
The folder you had gone into should be selected and the scrolling
position should be the same than when you entered it.

Reviewers: #plasma, broulik, hein

Reviewed By: #plasma, hein

Subscribers: anthonyfieroni, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D15840

M  +13   -2    containments/desktop/package/contents/ui/FolderView.qml

https://commits.kde.org/plasma-desktop/6736bdaa4bbd7c789e0049af4c57717725ac72b2