Closed KatieWoe closed 3 years ago
Thanks @KatieWoe, yes it should. Ill investigate.
Confirmed with JAWS in Chrome. When activating, we get three events
The pointer events are at (679,700) in the window, which matches the center of the button in my window on this load
So, it is getting pressed twice.
What is happening in this case is that the JAWS event target is not under the PDOM. So this block is preventing scenery from dispatching the up/down pointer events
if ( this.isTargetUnderPDOM( event.target ) ) {
return;
}
But no matter if we dispatch, the event we save the enent.timeStamp on the pointerUp, and so we block the click event too with
if ( trail && !( _.some( trail.nodes, node => node.positionInPDOM ) && eventName === 'click' &&
event.timeStamp - this.upTimeStamp <= PDOM_CLICK_DELAY ) ) {
this[ actionName ].execute( event );
}
If I remove the isTargetUnderPDOM
checks, it works OK in JAWS, the same workaround with PDOM_CLICK_DELAY works for that platform.
Alright, this needs to move to scenery.
This was fixed in https://github.com/phetsims/scenery/issues/1260 and changes were cherry-picked into the scenery branch for this release. Ready to verify.
This seems fixed in rc.2. However, I wonder if https://github.com/phetsims/john-travoltage/issues/447 is related, since I found it while looking at this bug.
Thanks @KatieWoe, sounds like this was fixed and we determined in #447 that this issue was not related. Closing this one.
Test device Dell Operating System Win 10 Browser Chrome Problem description For https://github.com/phetsims/qa/issues/676. Seen with Jaws. When using Chrome + Jaws + keyboard nav, I was unable to open the preferences dialog. I was able to open it with Firefox + NVDA and iPad +VO, so I'm not sure what the desired behavior is.
Visuals
https://user-images.githubusercontent.com/41024075/127717258-b792923f-35c4-4752-83e0-be2fc80a8350.MOV
Troubleshooting information: