-
Notifications
You must be signed in to change notification settings - Fork 76
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
Menu hover behavior #974
Comments
@po5 do the commits above solve your issues?
I'm all ears, I can't think of any. And I personally don't think this is an issue at all. It's quick and easy to learn that these show up there, so you know they are there when you need them. |
Personally, I might favor the previous solution, but that doesn't mean it's really better. At least for the operations that already exist within uosc most of the buttons' icons are clear enough about the functionality that it's acceptable to leave it as it is. Edit: The footnote for a button that actually only needs to be viewed once to understand its function is an acceptable inconvenience in relation to the benefits it brings. |
…ursor movement above actions ref #974
^ That should fix it. Hopefully I didn't break anything. |
I find the behavior introduced in 5790169 confusing, ran into it and this is something I'd report as a bug if I didn't know it was intended behavior.
If I read through #964 correctly this was trying to solve the action deactivating when using keyboard navigation and slightly bumping into your mouse on accident.
This behavior should only kick in when an action is selected (should NOT apply to the whole menu item as the menu selection index doesn't get reset even when moving the mouse, making the workaround useless there), and only if it was selected by keyboard navigation.I also think we could allow any cursor movement as long as it's outside of the menu. This may have been the behavior at some point already?
Noticed it when I tried to gauge why hovering through different items' actions feels so flickery, there are two issues:
A solution that addresses both of these issues would be extending the action's hover area to span the menu item's entire height, and a bit of leeway to the sides as well.
![image](https://private-user-images.githubusercontent.com/42466980/363971987-8bfc9de6-89c5-4325-89a8-873077673fd3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTQ2NzUsIm5iZiI6MTczODk5NDM3NSwicGF0aCI6Ii80MjQ2Njk4MC8zNjM5NzE5ODctOGJmYzlkZTYtODljNS00MzI1LTg5YTgtODczMDc3NjczZmQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA1NTkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRmMGQ5MTIyNTRhYjBkMmUwMjJiY2QyMTBjY2U0ZWM4YjEwYWY0ZDUzMDZhM2FiMWNiZDg0NmI3OTI5ZTcyZjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9_uNux-yQwU_2iFhO2OfdbLv4zm_9deyE4prR46OVBk)
I don't think anyone is purposefully trying to click within the small gaps I highlighted in red:
There is a conflict between cursor and keyboard navigation when hovering on an action button. Pressing tab does what it should, but it very quickly gets reset back to obey the cursor. The keyboard should be able to take over until there is a new mouse movement.
![image](https://private-user-images.githubusercontent.com/42466980/363977837-149e0a89-de04-419c-88d8-fccef56705a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTQ2NzUsIm5iZiI6MTczODk5NDM3NSwicGF0aCI6Ii80MjQ2Njk4MC8zNjM5Nzc4MzctMTQ5ZTBhODktZGUwNC00MTljLTg4ZDgtZmNjZWY1NjcwNWEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA1NTkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwYWE1YTkzZmEyZWQ3NmZhZTAzMjY2ZDEzZmI4ZDZjZGZmNDI0YWYzOGRiNjhiYzdhYWY1NGFhZTRhNzMyNDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GeE4-KqxFeEORqxIgZL4F1NRajhN1LAFv5AtwgX45LU)
While the same issue is not exhibited when using the keyboard to move up/down through menu items in a small enough playlist that it doesn't trigger scrolling, it should navigate to the new menu item as a whole instead of its action if the action's hover state was caused by the cursor and not the keyboard. Hope I explained this well enough, below is a screenshot of a confusing state this causes when switching from mouse to keyboard nav.
The text was updated successfully, but these errors were encountered: