-
Notifications
You must be signed in to change notification settings - Fork 4
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
On "both hands" keyboard nav tab and grab hands using mouse, the arrow key buttons do not disappear #350
Comments
@jessegreenberg, this is another byproduct of having focus remain (but invisible) when you mouse-click on something that has focus. To work around this currently buggy behavior I added the blur logic to the down event. Can you please review? I also want to note that I just glanced through all focus and blur listeners in the project, and didn't see any other obvious issues from this focus-changing behavior. |
I think this is reasonable for the release. Would another way to do this be to link the visibility of interaction cues on focus to Display's |
I'm trying to figure out which is less confusing as a patter. I'm unsure if |
I feel ok about 9cfb1cc for now. I'll move on with this, and we can discuss generality at a later time. |
Cherry-picked |
I am somewhat confused! It looks like there are three "states" for these interaction cues:
What I notice is that you clear the cue for (1) by pressing Up/Down while having focus on just one hand, which is great! This keeps the cues for (2) and (3) when you tab to simulatneous focus, which is also great! Then you have to press W/S to get rid of (2), while still keeping (3) visible, then you have to press Up/Down to get rid of (3). That's all great! However, my confusion stems from the idea that clearing (1) first does not clear (2) or (3), BUT clearing (2) and (3) first does clear (1)? The sensical steps:
The confusing steps:
|
Alright I am going to move #350 (comment) to its own issue, but otherwise I am seeing that the bug reported here is fixed! |
Test device
Lenovo ThinkPad
Operating System
Windows 10
Browser
Chrome
Problem description
This is for phetsims/qa#609
When using the keyboard navigation and tabbing over to the "both hands" option, the squares that demonstrate the buttons to click to move the hands pop up, but if you grab a hand with the mouse, those squares don't go away.
Visuals
Troubleshooting information:
!!!!! DO NOT EDIT !!!!!
Name: Ratio and Proportion
URL: https://phet-dev.colorado.edu/html/ratio-and-proportion/1.0.0-rc.2/phet/ratio-and-proportion_all_phet.html
Version: 1.0.0-rc.2 2021-02-13 05:25:44 UTC
Features missing: applicationcache, applicationcache, touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Language: en-US
Window: 1707x818
Pixel Ratio: 2.25/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 30 uniform: 4095
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 32767x32767
OES_texture_float: true
Dependencies JSON: {}
The text was updated successfully, but these errors were encountered: