Closed Nancy-Salpepi closed 1 month ago
This may be a moot point now since we are switching to grab drag interaction,
Good point, let's put this on hold until after #209
Same problem now that we have GrabDragInteraction. Not sure how to solve it. @jessegreenberg or @zepumph any recommendations how to investigate?
One thing I noticed is that the focused Node has infinite Bounds. The AnimatedPanZoomListener won't be able to pan to keep that target in view.
Every once in a while, I noticed the bounds become finite and the problem went away. I would see the focus highlight jostle a little bit and wrap tightly around the mass graphic. Then it would shift away. This might be related to https://github.com/phetsims/density-buoyancy-common/issues/209#issuecomment-2286597605 and #327
If the infinite bounds cannot be fixed, let me know and we can explore workarounds in scenery.
Thanks for the lead @jessegreenberg. That was really helpful. This was the chunk of code that was breaking things:
This is fixed now. Closing.
Test device MacBook Air M1 chip
Operating System 14.5
Browser Safari and Chrome
Problem description For https://github.com/phetsims/qa/issues/1095, on all sims and all screens, if I change screens using the mouse while a moveable object, such as a block or scale, has keyboard focus, when I return to that screen I am unable to pan with keyboard navigation. This may be a moot point now since we are switching to grab drag interaction, but still thought I should report this.
Seems specific to these sims. I also tested FEL on main and didn't see this problem when moving the magnet.
Steps to reproduce Here is an example:
Visuals
https://github.com/phetsims/density-buoyancy-common/assets/87318828/29616a39-34a0-4434-8c1f-8f41ec582547