-
Notifications
You must be signed in to change notification settings - Fork 5
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
Last nuclide may not appear #51
Comments
Edit, should say last nuclide, not second to last. |
Thanks @KatieWoe! @Luisav1 and I had some trouble fixing this initially - the problem was occurring because the total count of each nucleon was blipping to the max when it was one smaller than the max because they were being double counted momentarily when being moved from the "particles on their way to the atom" array into the atom itself. When discussing with @ariel-phet, we had the idea to track these counts just based on "what is out in the play area", instead of worrying about where the nucleons specifically were when out in the play area. Turns out, we were already setup to do this nicely with the particles array on the BANModel. @KatieWoe could you please confirm on phettest? |
…ead of particle atom + side arrays counts, see #51
This still seems to be happening on phettest. |
@KatieWoe it's working on phettest for me, do you mind checking if it's a caching problem? thanks! |
It shouldn't be since I was in an incognito window, but I'll try one more time. |
Ok, it seems ok now, not sure why it wasn't working before, maybe I didn't pull correctly. Sorry about that. |
For QA: Please close if this is fixed. Thanks! |
This looks good in 1.0.0-rc.10. Closing. |
Sorry I just saw this similar issue with mac + chrome/safari. After U-238 decays, the neutron disappears after a second but the arrow is still active and a neutron can be added. neutron.disappears.mp4 |
Thanks @Nancy-Salpepi! @chrisklus and I ideally fixed this in the above commit. Could you please check? We also added the "protons=x" and "neutrons=x" query parameters that you can use to get to U-238 quickly. |
@Luisav1 @chrisklus I no longer see the neutron randomly disappearing 🎉 and I love the new proton= neutron = query parameters! Two things:
protonneutron.mp4 |
Thanks @Nancy-Salpepi! @chrisklus and I refactored the way the creator node visibility is checked, which fixed the above cases but also changed a lot of other code. We would appreciate thorough testing again on the creator node visibility. Thanks again! |
@Luisav1 @chrisklus things are looking good to me. @KatieWoe is also going to take a look, so please hold off on closing. |
I didn't see anything on my end :) |
Looks like this is good to close, thanks all! |
Test device
Samsung Chromebook and Dell
Operating System
ChromeOS and Win 11
Browser
Chrome
Problem description
For phetsims/qa#828
The last of a nuclide (either proton or neutron) may not appear before it is added to the nucleus. This happens if you are adding them individually or both at once from lower numbers. You can still add the last ones with the buttons, but not by dragging.
Visuals
Troubleshooting information:
!!!!! DO NOT EDIT !!!!!
Name: Build a Nucleus
URL: https://phet-dev.colorado.edu/html/build-a-nucleus/1.0.0-rc.8/phet/build-a-nucleus_all_phet.html
Version: 1.0.0-rc.8 2022-08-25 22:49:47 UTC
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/104.0.0.0 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: