up buttonIt would be nice if it went back to roughly where you were before clicking on the folder.
This feature was requested by a user. Seems useful when navigating using folders.
Feels like it may be easy to implement:
scrollToIndex or scrollToPosition in _virtual scroller_ to achieve thisAlternative solution to apply to any number of nested folders:
imageElement representing the folder containing the first (or any) video you just came up from.See here in image-viewer for an example.
That method allows you to move up one folder, showing more images, but scrolls back to the top right image in your current view. 馃槃
I discovered a bug in _ngx-virtual-scroller_ 馃槄
The scrollToPosition does not accept 0 ms 馃槗
I'll try to fix it 馃榿
https://github.com/rintoj/ngx-virtual-scroller/issues/420
Thank you @cal2195 for the code reference 馃 -- it was helpful 馃榿
I ended up using pixel offset because that maintained the scroll position more-exactly 馃憣
Does this only work for a single folder level? 馃
Yeah -- it's a really rough implementation only aiming to handle the _root_ level 馃槄
There is also breadcrumb navigation, so to handle all cases I'd have to keep track of depth (since up is not the only way to navigate).
Also I didn't add a reset when switching hubs, so it will navigate incorrectly the first time after using the folder navigation in one hub and switching to another if the user hasn't come back to _root_ level 馃し鈥嶁檪
While it's a hack-y implementation, it will handle (I think) 95% of the cases without causing any more discomfort than before, and significantly improving the navigation experience otherwise.