Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling in app is laggy/unresponsive with certain mice #418

Open
kimjongbing opened this issue Jul 8, 2024 · 12 comments
Open

Scrolling in app is laggy/unresponsive with certain mice #418

kimjongbing opened this issue Jul 8, 2024 · 12 comments
Labels
needs-info An issue that needs more information upstream

Comments

@kimjongbing
Copy link

OS: Arch Linux
DE: GNOME 46.3.1
WM: Mutter (Wayland)

When I click the scroll rectangle thing and drag it to scroll up/down there is a big delay.

@dweymouth
Copy link
Owner

I have not seen this happen or had it reported before. Are you using Supersonic via a native Wayland build (which is still experimental) or through xwayland? Also, which view is slow to scroll? (tracklists, grid view, or both)?

@dweymouth dweymouth added the needs-info An issue that needs more information label Jul 9, 2024
@kimjongbing
Copy link
Author

I have not seen this happen or had it reported before. Are you using Supersonic via a native Wayland build (which is still experimental) or through xwayland? Also, which view is slow to scroll? (tracklists, grid view, or both)?

On the grid view it is really slow and laggy, on the track view its fast but also laggy. Kinda hard to describe

I'm using the bin here from the AUR https://aur.archlinux.org/packages/supersonic-desktop-bin

@dweymouth
Copy link
Owner

Maybe a screen capture may be helpful. I can't reproduce this on any of my systems so a video might help to get a sense of what could be going on.

@kimjongbing
Copy link
Author

Maybe a screen capture may be helpful. I can't reproduce this on any of my systems so a video might help to get a sense of what could be going on.

8mb.video-2Iw-QlISbsph.mp4

@kimjongbing
Copy link
Author

After I start scrolling I take my mouse off the scroll bar and it keeps going on its own. You can't see my cursor in the video but it's not on the scroll thing

@dweymouth
Copy link
Owner

Oh, do you by chance have a mouse that reports an insanely fast rate like 1000 Hz? I remember someone else having a similar issue with a different app built with the same toolkit (Fyne). If so, unfortuantely there might be no fix right now other than to use the keyboard arrows to scroll instead, or changing your mouse speed. Eventually, the toolkit will have to do some internal handling to not respond to every scroll request if they come in too fast. I will try to see if it's been reported there as a bug and get it prioritized.

@kimjongbing
Copy link
Author

Oh, do you by chance have a mouse that reports an insanely fast rate like 1000 Hz? I remember someone else having a similar issue with a different app built with the same toolkit (Fyne). If so, unfortuantely there might be no fix right now other than to use the keyboard arrows to scroll instead, or changing your mouse speed. Eventually, the toolkit will have to do some internal handling to not respond to every scroll request if they come in too fast. I will try to see if it's been reported there as a bug and get it prioritized.

no i dont think my mouse has an insanely fast rate. is there a way to check reliably? i have 800 dpi also

@dweymouth dweymouth changed the title Scrolling in app is laggy/unresponsive Scrolling in app is laggy/unresponsive with certain mice Jul 19, 2024
@subpanic
Copy link

Wanted to tack on that I'm similarly experiencing jumpy/laggy scrolling on an M1 Pro Macbook Pro when scrolling with the trackpad. MacOS version is Sonoma

@dweymouth
Copy link
Owner

For those seeing this issue, does it happen on all scrollable views, or only on the tracklist or only in grid views? I cannot reproduce the issue at all with grid views, and with list views it is just a tiny bit unsmooth on my M1 Macbook with the trackpad

@subpanic
Copy link

screen_28.mp4

It's unsmooth scrolling in all views, the more prominent jumpy/stuttering scrolling is on the grid views. The artists view in this screen really shows it, very jumpy, like the content is constantly changing.

@dweymouth
Copy link
Owner

Oh, OK I think the "jumpy" scrolling is a separate issue from the "laggy" scrolling. I had honestly just gotten used to it, but it's from the UI toolkit's scroll accelerate logic - when scrolling faster than a certain fixed speed, it multiplies the scroll speed by an acceleration factor to accelerate it further. This maybe could either be disabled for Mac, if MacOS handles scroll acceleration itself anyway, or else improved to a more smooth function with no discontinuity.

I created an issue in the UI library for this

@dweymouth
Copy link
Owner

Jumpy scrolling on Mac will be resolved when fyne-io/fyne#5068 is merged in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info An issue that needs more information upstream
Projects
None yet
Development

No branches or pull requests

3 participants