-
Notifications
You must be signed in to change notification settings - Fork 12
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
AnimatedPanZoomListener doesn't keep the Node in view during drag in cases of event forwarding #1321
Comments
Hey @jessegreenberg (Using Mac OS 12.0.1 + chrome) |
Ah, thanks @Nancy-Salpepi, Ill take a look at that case as well and see what is different. If I proceed with
I suspect it will fix all of these anyway. |
I also noticed that automatic panning may happen in phetsims/qa#738 when it isn't intended. IMG_0084.MP4 |
The above also happens from the bottom of the pool scrolling up. |
Noting this in phetsims/qa#751 |
This issue was replaced by #1558 which is complete. Closing this one as well. |
Noticed in phetsims/equality-explorer#179.
The AnimatedPanZoomListener uses the Trail to the target of a down event to determine which Node should remain in view when dragging. That Trail is not the one we want to track when event is forwarded to another target with the creator pattern.
In general I don't think we should be using the Trail of the down event to accomplish this with the AnimatedPanZoomListener. I don't see any good way from Event or Pointer to retrieve the right Trail of the "grabbed" Node to keep it in view.
I am almost wondering about changing the behavior slightly to pan whenever the Pointer is near the edge of screen bounds and not make it based on whether the Node is out of view at all.
The text was updated successfully, but these errors were encountered: