linuxmint / cinnamon-menus

The cinnamon-menu library
GNU General Public License v2.0
26 stars 20 forks source link

Scrollbar glitch when opening menu #50

Open ds7-ds opened 3 years ago

ds7-ds commented 3 years ago

menu-scrollbar-glitch-2021-09-01_10 26 51

When I open the menu, I always seem to notice the scrollbar changing its height briefly. It distracts me a bit. The above GIF shows that problem (You may have to open GIF in new window to get better resolution). Is this something I can fix on my own or does the code need to be updated?

mtwebster commented 3 years ago

Quite a while back, there was a lot of focus on improving the speed of the menu opening. One thing we did was to have the menu initially load only 20 apps - enough to fill the view, and then add the remaining once the menu was fully visible. This is what causes the change in the scrollbar - more items being added.

It's possible the original issue is moot now, and we could remove this trickery. You're just the first person to have brought it up. I notice it always, but I think because I'm the one who originally implemented it years ago.

ds7-ds commented 3 years ago

I'm fine with the trickery because I do it all the time when I'm coding. If maybe, the scrollbar can be hidden unless scrolling action takes place with the mouse, that would be good.