-
Notifications
You must be signed in to change notification settings - Fork 68
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
Weird scrolling behaviour in firmware 12.0.0 #1039
Comments
My guess this is related to the new smooth scrolling feature @mondalaci ? |
I agree that hi-res scrolling is probably the culprit since 12.0.0 is the first firmware release with #794 merged. Related issue: #741 I can reproduce the issue in Notepad++ on Windows 11. @rightaditya @mhantsch Any insights? |
Is there a way to turn this off? |
There's no way to turn this off. Downgrading Agent and the firmware is the only way. |
@abonhote how are you triggering the mouse wheel? Using a module (Touchpad, trackball, trackpoint, mini-trackball) or from key presses? What are your mouse-relevant settings in Agent? |
Keys only, normally. The trackball and the touch pad seem to work fine. Can't send any config before tomorrow. |
Is the scrolling smooth in Notepad++ with the trackball? Or is it the same as before the upgrade? Unfortunately I can't test myself as my Windows install is currently not working properly. I'd have to check the struct details but I think the fastest fix would be to disable the scroll multiplier entirely for mouse events from keys. As it stands the check is for @abonhote The trackball and touchpad are fine for both Notepad++ and the SQL tool, right? |
Hmm, OK, it won't be so simple to revert just for the mouse keys since they still need to send values scaled according to the OS's (new) expectation. Since I can't test it myself I might as well describe what I think is going on... The keyboard reports high-res support and so the OS expects 120x the scroll values from the mouse device. The mouse keys apply the multiplier when scrolling, but the mouse controller sends whatever events it has accumulated every time it sends its report, without waiting for to accumulate a full detent's worth (this is required for the high-res scrolling to work). The OS receives what would ordinarily be a "partial" scroll (i.e., not a full detent) but some applications explicitly wait for a full detent, and so need more than one press of the scroll key (or holding it down) to actually scroll. So this might be addressable by adjusting scroll speed settings for the mouse keys. It sounds like Notepad++ might be waiting for a full scroll detent, since it responds to two presses of the scroll key. Doubling the scroll speed values might do the trick. If so, an extra multiplier can be applied on top of the high-res scrolling multiplier in the firmware so that users' existing settings continue to work more-or-less as-is. The only potential issue is that the actual scroll amount sent from a scroll key is dependent on how long it's held down, so one user's "single press" is likely to be different than another's (or even their own). If someone can confirm that doubling (or applying some other adjustment to) the scroll speed values fixes it, I can try and find an appropriate multiplier value to use and write the patch. |
Thanks for your quick follow-up and insight! My settings: I don't notice the issue when using my trackpoint module, but it's easily reproducible with mouse keys, especially when switching scrolling directions and scrolling momentarily. When I increased the initial scrolling speed to 61, I couldn't notice the issue with the mouse keys anymore. |
I would also argue that instead of attempting quick fixes with firmware updates, users with this particular problem should look at their mouse scroll speed settings in Agent. I know that @rightaditya made sure the same multiplier is applied with key presses that activate mouse scrolls because that was an issue I had in Windows and his changes corrected that. I suspect I just use a higher base scroll speed value and that's why I don't get the "two key presses needed" before a scroll happens. I have to check my settings but I am not at the UHKs right now. |
Interesting Axis skew value ... |
Just out of curiosity: did you try that? I downloaded the last agent installer, it says it couldn't find my UHK. Edit: Downgraded fw, used my company's filthy logitech mouse (eeek!) to downgrade the agent. That worked. |
I just learned that the agent updates itself after each start ... I would love to have an option to turn this behaviour off. Now I have to downgrade after each start. |
Well, "check for update" is not necessarily "install update", right? It's a bit misleading IMHO. |
I don't disagree; it would probably be better to notify of an update and require confirmation to install. |
Why would you check if you didnt want to install though? |
@abonhote What's your experience with scrolling if you use my "Mouse scroll speed" settings? They work well for me no matter whether I use the mini-trackball from the key cluster, or scroll keys (mouse scroll actions assigned to key presses), or I use scrolling with the touchpad or trackball modules. |
Best use case is the current situation. I'd like to get notified when a new version is around, but I won't install it unless this issue here is resolved. |
I downgraded to 11.2.0. Your settings work fine with this fw. Don't think I will flash 12.0.0 before the next update. |
I'd prefer to read the changelog before updating. And in cases like we see here, it might also be better to leave the auto update option unchecked for first time/clean installations. |
Just to see if there is something new, and study the release notes before deciding to upgrade. |
These settings should work fine with 12.0.0 too. I've tested them with a special version of 11.2.0 that included the hires-scrolling patches -- the same code that is now also in 12.0.0. And I also used them with the UHK 80 with a pre-version of 12.0.0. |
Please let's discuss update-related suggestions in the newly created UltimateHackingKeyboard/agent#2465 issue, guys. |
@abonhote 11.2.0 didn't have the patch that caused the issue. You'd need to try the different settings on 12.0.0+ or a patched 11.2.0 in order to confirm that the problem's fixed for your applications. From the discussion above it sounds like it should be at least for Notepad++, so hopefully should be for the other as well. |
@rightaditya @mhantsch @mondalaci I upgraded to 12.1.0 today and adapted the settings to the ones provided by @mhantsch. Scrolling works fine in most apps, but not in all. We have a business ERP written in Java Swing. Scrolling is sluggish, even when accellerated, and zooming (using CTRL) doesn't work at all using the keyboard. Both works fine with the touchpad and the trackball. So I guess there's still some work to be done here, I'm afraid. I'm happy to test whatever beta you provide. (edit: posted this from the wrong account) edit2: zooming with the touchpad seems to be broken, too. I have the mouse modifier configured to set the touchpad to scroll mode. Hitting CTRL-Mouse and moving on the touchpad doesn't work in that specific Swing application, same behaviour as with the keys. edit3: Sorry for the updates: The appliation reacts on the mousewheel for zooming, with or without CTRL. Downgraded again to 11.2.0, works fine here. |
Some of these issues may have been fixed by the https://github.com/UltimateHackingKeyboard/firmware/actions/runs/12509029737 build. |
Hi! Is this already in 12.2.0? I dug out an old mouse, just to check the behaviour. The scroll wheel of the mouse is much smoother than the scroll function on with the keys. As well, in our companies ERP application (java swing based), the keys behave irrationally, scroll back and forth. Zooming in on a map inside that ERP doesn't work at all (and I am responsible for that map component ... bummer ...) Do you need anything else to analyze that thing? |
I think most of these issues might be fixed with: https://github.com/UltimateHackingKeyboard/firmware/actions/runs/12706975201 You may need to adjust scroll speed settings for the modules. My touchpad scrolling was slow until I droped my scroll speed divisor. |
Hi all
Since I updated to 12.0.0 today, I'm experiencing a weird mouse wheel behaviour, at least while using Windows 10. Not all applications are affected. The developer console of the UHK agent seems to work fine, while my SQL tool of choice (allroundautomations.com => PL/SQL developer) refuses to scroll. Also notepad++ has problems scrolling, it needs two keystrokes to scroll down.
I'd love to give you more information, but I'm not sure how. Please tell me what you need to investigate on it.
Cheers
André
The text was updated successfully, but these errors were encountered: