Closed KatieWoe closed 1 year ago
I believe this should be prevented by the above commit. @KatieWoe can you verify?
The movement that lasts a second before stopping still happens, but the more serious version that doesn't stop does seem fixed.
@jonathanolson I am curious what you think of this patch as an alternative to your change in https://github.com/phetsims/molecule-shapes/commit/a2b726f46f184e1b8742c4d9979172dad675a05f. The issue is that pan/zoom listener only interrupts attached Pointer listeners, so this was happening in the condition that the listener was not attached to the pointer.
I tried to remove the other equalsEpsilon
check in multiDragListener
. The pan/zoom listener will interrupt rotation to start a pan but only after there is a little bit of pointer movement so we will start to rotate the molecule then quickly interrupt which looks a little odd. I don't see a great way currently to remove that workaround.
I prefer your approach, I think the lack of attachment was for pan-zoom so this works better. Committed above.
On master it looks like I'm still seeing what was seen in https://github.com/phetsims/molecule-shapes/issues/213#issuecomment-1022633858. I think this is generally acceptable, but am reassigning. If you agree that this is acceptable behavior this can be closed.
I still see what was reported in https://github.com/phetsims/molecule-shapes/issues/213#issuecomment-1022633858 when testing https://github.com/phetsims/qa/issues/785
I think I am able to see https://github.com/phetsims/molecule-shapes/issues/213#issuecomment-1022633858 if I start dragging with two fingers and drag without making the zoom gesture. Then as soon as I make the zoom gesture dragging is interrupted and we zoom in. That is the only way I have been able to reproduce and I think it is the correct behavior.
@jonathanolson anything else you would like to do for this issue?
This looks good to me, thanks!
Test device Dell Operating System Win 11 Browser Firefox Problem description For https://github.com/phetsims/qa/issues/768 and may be related to https://github.com/phetsims/joist/issues/749. When you start to zoom into the sim with pinch to zoom, the molecule acts as though it is also being dragged. This sometimes stops after a second, but if you accidentally swipe your finger as you start to pinch, the molecule will not freeze. Steps to Reproduce
Visuals
Troubleshooting information: