-
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
Panning while dragging some objects stops working when zoomed in past a certain amount #1382
Comments
Noting other instances here: |
I tried out #1382 (comment), it feels disorienting out of control. |
In general the behavior for the examples in #1382 (comment) actually feels pretty good to me. It seems like a good compromise for what should happen when dragging something that is currently too large to fit on screen. The case of gravity-and-orbits is slightly different because the planet has invisible children that are contributing to the Bounds of the Node and making them larger than they should be. |
I don't want to use Would it work to just pan so that we keep a small rectangle around the Pointer in view instead of basing things on the bounds of the drag target?
EDIT: I tried it out and it doesn't work well because the pointer point is always along the edge of the screen, so we just keep panning without mouse moves and leave the draggable behind. |
Over slack @jonathanolson said that using |
This should be fixed for gravity-and-orbits. @KatieWoe can you please confirm? The other cases in #1382 (comment) will still have this behavior, but it seems they all legitimately have bounds that are larger than the screen. Correct me if I have that wrong. |
This looks good in master. If I see issues in other sims I'll let you know, but I think we're ok. |
OK, thanks! Local aqua is doing OK with this change and I am not seeing it on CT (though CT is pretty red atm for another issue and problems may be obscured). Closing. |
Test device
Dell
Operating System
Win 11
Browser
Chrome
Problem description
For phetsims/qa#785. I suspect it is related to phetsims/geometric-optics#367.
Seen on Gravity and Orbits. When trying to drag the sun past a certain zoom point, the screen no longer pans with the object. This doesn't seem to happen with the smaller Earth object. However, the sun doesn't seem large enough that I would expect phetsims/geometric-optics#367 to come into play.
Steps to reproduce
Visuals
Troubleshooting information:
!!!!! DO NOT EDIT !!!!!
Name: Gravity and Orbits
URL: https://bayes.colorado.edu/dev/phettest/gravity-and-orbits/gravity-and-orbits_en.html?ea&brand=phet
Version: 1.6.0-dev.1 (unbuilt)
Features missing: applicationcache, applicationcache, touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Language: en-US
Window: 1280x649
Pixel Ratio: 1.5/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 30 uniform: 4096
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 32767x32767
OES_texture_float: true
Dependencies JSON: {}
The text was updated successfully, but these errors were encountered: