-
Notifications
You must be signed in to change notification settings - Fork 2
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
When showing the hand: if there is a focused soccer ball, show the hand on that one. #521
Comments
…elected or tabbed to via the keyboard, that takes precedence for indication, see #521
I implemented that as prescribed. Would be good to test. |
^^ This sounds really confusing from a user standpoint... let's discuss together, because I'm also confused about implementation here. I feel like there should be a more straightforward solution to this as well. |
That's a good point, @marlitas. I talked with @kathy-phet about it, too, and here's what we decided:
Hopefully that makes sense, writing it out is surprisingly challenging. |
@marlitas and I talked about the situation for when the focus happens to be on a ball that is also the median stack. In this situation, as noted above, the median down arrow and the 'move-me' cue occlude each other. @marlitas suggested making the arrow move up so the 'move-me' arrow is not occluded. This situation will happen in a very few cases, and once the ball has been moved, the arrow will never appear again. This is a good solution and will be a nice way to be able to see both arrows (median and cue). |
Looks really good. The median arrow moving out of the way is a nice solution for when the median and alt-input arrows are in the same place. Ready from my end :) |
Given the complexity, this looks like it may be worth a synchronous review. Marking help-wanted. |
Commits and behavior looked great. Reviewed code changes and made one small refactor to make avoidAccordionBox reusable for the drag indicator and avoid some code duplication. Over to you to review the changes @marlitas. Feel free to close when ready. |
Loved those changes. Thanks @matthew-blackman! Closing. |
I forgot I wanted to keep this open for QA. Reopening |
I found a potential oddity with this in dev.16. If the mouse is hovering over the ball the keyboard nav is focusing on, the hand and drag arrows will appear even though keyboard nav is activated/in use. Center.and.Variability.-.Google.Chrome.2023-09-29.12-52-40.mp4 |
To me this behavior seems OK, your mouse is active at the time of the cuing showing up. I don't think I would change the behavior here. |
This was something that I believe we went back and forth with as well. I agree with @kathy-phet, the mouse is active so that cueing hand should reappear, but we don't want the keyboard highlight to disappear because a user should be able to press a keyboard shortcut and still interact with that balls as long as no click event happens. Sending over to @catherinecarter to confirm, but I believe this is okay. |
Agree, @marlitas. I wouldn't know how to detect the mouse hover since it could be very active. This is one of those things that I noticed as well, that the cueing hand/arrow appears when the focus is on a ball, making a lot of things happening at once on a single ball. I agree it's distracting, but from what I understand, I believe the behavior is doing what it's supposed to do. Perhaps I'm incorrect, but I thought the behavior was that if a user has focus on a ball and then mouses over it, focus remains on the ball but the sim thinks the mouse has taken over, so the hand appears. Long story short, yes, I think this is ok and behaving as expected. |
@catherinecarter sounds good. I'll go ahead and close this issue then. |
From #518
When the hand appears, move the keyboard + focus indications to that hand item. We chose to move the focus to the hand rather than moving the hand to the focus because: it's important the hand appear on the most recently kicked ball (unless median or too tall stack).
In discussion, we realized that if the user has used the keyboard modality before, they are likely to use it again, so we would rather not move that focus. So in that case, the hand will be shown where the focused ball is.
So the implementation will be:
When showing the hand: if there is a focused soccer ball, show the hand on that one. But if the user never selected a soccer ball via keyboard, just follow the pre-existing logic.
The text was updated successfully, but these errors were encountered: