Closed zepumph closed 6 months ago
Ahh goodness, sorry that I made you investigate. This is totally on my side. I'm not really sure how this code path is occurring, but I'm thinking it is just because of how keyboard fuzzing is applying many keyboard events in the same frame. I added grace above and I cannot reproduce now. Closing
I started seeing this with ?fuzzBoard during https://github.com/phetsims/scenery/issues/1570. But I think it may be an issue with how Masses are reset. Here is what I am seeing:
1)
MassView.focusablePath
has afocus
listener that callsmass.start
. This setsuserControlledProperty
to true. The path receives focus. 2) Somehow (maybe the ResetAllButton) callsMass.reset
and sets theuserControlledProperty
to false. 3) Then, theMassView.focusablePath
gets ablur
event. There is ablur
event listener that tries to callmass.endDrag
. SinceuserControlledProperty.value
has been reset, this causes the assertion.If the order of operations with KeyboardDragListener seems wrong, let me know and I would be happy to keep looking.