pop-os / libcosmic

WIP library for COSMIC applications
https://pop-os.github.io/libcosmic/cosmic/
Mozilla Public License 2.0
359 stars 32 forks source link

List position does not reset when changing pages in cosmic applications. #364

Open XV-02 opened 3 months ago

XV-02 commented 3 months ago

On fe2f767, if I select a software category such as Game from the draw, and scroll half way through the presented options, and then change to another category such as Develop, the new list will be displayed at the half-way point, not at the head of the list.

Technically, it isn't actually at the same scrolled percentage, as moving from half-way through Installed - which may have 50 entries - to Game - over 1000 - has the list of game related packages scrolled some value through, but it is neither half-way nor ~3% of the way through the list (as it would be if the raw percentage or integer number of scrolled items was what counted respectively)

git-f0x commented 3 months ago

This behavior is currently present in all libcosmic apps (easiest to see in Settings, Files and Store).

XV-02 commented 3 months ago

Good catch @git-f0x. I can reproduce it on my end, which suggests this is a libcosmic issue, so I'll move it over there.

XV-02 commented 3 months ago

As an additional note: When I close or open the menu drawer, the list position does reset.

edfloreshz commented 2 months ago

Is this still the case? I cannot reproduce in the current build of cosmic-store.

git-f0x commented 2 months ago

It was fixed specifically for cosmic-store (commits: https://github.com/pop-os/cosmic-store/commit/21c61d6cb0a7f18fb7000e09d9371fb698ac16ca, https://github.com/pop-os/cosmic-store/commit/f3eda45543461785e0c0f46b6254d73d19c0b65f), but isn't fixed for other apps. App-specific implementations of a fix seem to be required at the moment.