unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.93k stars 725 forks source link

[Skia macOS] Scrolling by mouse wheel is very slow #16400

Open MartinZikmund opened 6 months ago

MartinZikmund commented 6 months ago

Current behavior

When mouse wheel is scrolled, it scroll bar moves very very slowly

Expected behavior

Should be on par with other macOS apps

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

Skia (GTK on Linux/macOS/Windows)

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

spouliot commented 3 days ago

I do not have an issue with scrolling with both the laptop trackpad or with a Magic Mouse. In both cases the speed of scrolling seems correct.

@MartinZikmund Not sure if that was fixed or if you were using a mouse with a wheel ? I can try to find one... somewhere...

MartinZikmund commented 1 day ago

Let me try again 👍

MartinZikmund commented 18 hours ago

@spouliot it does seem that the mouse scroll wheel is the problem, scrolling it just goes line by line, very slowly. I can try some change on my side if you point me in the right direction 😁

spouliot commented 14 hours ago

@MartinZikmund what kind of mouse are you using ? it's not a Magic Mouse right ?

I can try some change on my side if you point me in the right direction 😁

If you build SampleApp.Skia.Generic.csproj locally (on a Mac) the native library will be built with DEBUG enabled - which will log a lot of data on stdout.

Some mouse events are commented out (there's too much of them) but can be re-enabled locally.

https://github.com/unoplatform/uno/blob/46b77257597437ac8690015e584a8a9bc398d2fb/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m#L808

spouliot commented 5 hours ago

k, found an old mouse with a scroll wheel and I can duplicate the issue.