flathub-infra / website

Monorepo with website and API
https://flathub.org
Apache License 2.0
231 stars 88 forks source link

Sideways scrolling works very badly with mouse #3862

Open forteller opened 2 months ago

forteller commented 2 months ago

Hi. Quite a few mice have a scroll wheel that also can be pushed to the side to scroll sideways. When I use such a mouse and see a sideways scrolling UI, I expect to be able to scroll trough it that way.

This works so poorly on Flathub that I would say that it doesn't work at all. Both with the featured apps slider thingy on the front page and on screenshots you have to hold the scroll wheel in position, and then it slowly moves, jaggedly. If you let go it snaps back. On the front page you seem to be able to do this as much as you like, but with the screenshots it only works once, and then even that stops working.

https://github.com/user-attachments/assets/32d71b95-2325-4a11-8114-58e11ae88ffc

Expected behavior is that you just have to click sideways on the scroll wheel once to move to the next/previous item/screenshot.

Thanks for your great work! :)

razzeee commented 1 month ago

On the front page you seem to be able to do this as much as you like, but with the screenshots it only works once, and then even that stops working.

Tracking here https://github.com/igordanchenko/yet-another-react-lightbox/issues/305

forteller commented 1 month ago

The upstream issue seems to be resolved, according to that link. How often does Flathub update this part of the website, so that I can check if it actually resolves the issue? Thanks! :)

razzeee commented 1 month ago

I already updated to the relevant version

forteller commented 1 month ago

Thanks! Then upstream doesn't seem to actually have fixed it after all, because nothing has changed for me.

razzeee commented 1 month ago

It changed for my mouse

forteller commented 4 weeks ago

Still doesn't work for me. I asked on Reddit for more people to test, unfortunately only one did, but it didn't work for them either https://www.reddit.com/r/flatpak/comments/1fx33p5/help_me_test_a_bug_on_flathub/

I'm on Firefox 131.02

razzeee commented 4 weeks ago

It would be interesting to see the values your mouse produces and report them upstream

forteller commented 4 weeks ago

Sure. How would I find those?

razzeee commented 4 weeks ago

Checkout the repo https://github.com/igordanchenko/yet-another-react-lightbox/tree/main

Add https://github.com/igordanchenko/yet-another-react-lightbox/issues/305#issuecomment-2354057961 in here https://github.com/igordanchenko/yet-another-react-lightbox/blob/main/src/modules/Controller/useWheelSwipe.ts#L74-L77