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

Key repeat rate in macOS is too slow in Avalonia 11 #12220

Closed
BAndysc opened this issue Jul 16, 2023 · 2 comments
Closed

Key repeat rate in macOS is too slow in Avalonia 11 #12220

BAndysc opened this issue Jul 16, 2023 · 2 comments

Comments

@BAndysc
Copy link
Contributor

BAndysc commented Jul 16, 2023

Describe the bug
Key repeat rate (rate in which next KeyDown events are invoked) is way slower in Avalonia 11 in macOS compared to Avalonia 0.10 and other applications. At first I thought one of those Avalonia versions ignored system settings, but no, both versions do take into account system key repeat rate setting.

After measuring, the key repeat rate in Avalonia 11 seems to be almost twice as slow compared to Avalonia 0.10.

To Reproduce
Steps to reproduce the behavior:

  1. Add a ListBox with multiple elements.
  2. Press and hold an arrow to scroll through items
  3. Subsequent items will be selected in way slower rate compared to older version and other system applications.

Expected behavior
Subsequent items should be selected way faster, as they used to be and as they are in other applications.

Videos
See the timer in the bottom right corner.

Avalonia 0.10.21:

Screen.Recording.2023-07-16.at.18.57.23.mov

Avalonia 11.0.0:

Screen.Recording.2023-07-16.at.18.58.34.mov
  • OS: macOS
  • Version 11.0.0

Additional context
This is not a bug in ListBox, the pace of selecting next items comes directly from the rate of invoking KeyDown event.

@watsug
Copy link

watsug commented Aug 9, 2023

I can confirm, this is a really painfull behaviour comparing to Avalonia 0.10.x. I have an application just ported to Avalonie 11.x, and I cannot manegae to get some custom controls working because of this issue. Anyd ideas on when it could be solved?

@BAndysc
Copy link
Contributor Author

BAndysc commented Feb 1, 2024

Looks like it is working correctly now in the latest nightly Avalonia 11.1 builds

@BAndysc BAndysc closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants