Closed Nancy-Salpepi closed 3 years ago
Nice catch @Nancy-Salpepi - This is definitely incorrect behavior. I've added code to restore the default layering on reset-all and reset-balloons. This have been cherry-picked to the 1.5 release branch.
Looks good now. The green balloon is always in front after reset.
Reopening. This seems mostly fixed, but when you first enter the sim, the green balloon is in the back. Reset, or Reset All put it in front.
Nice catch @KatieWoe
Somehow I'd missed the fact that the green balloon is in the back by default. I've changed things so that the reset operations put the yellow balloon in front.
For the record, the original problem reported here exists in the version that is currently live on the PhET website (version 1.4.16).
Yellow balloon is always in front now.
Test device MacBook Air (m1 chip)
Operating System 11.5.2
Browser safari
Problem description https://github.com/phetsims/qa/issues/706
When the reset balloons button is pressed, whichever balloon had focus last is the balloon that is in front after the reset. Is this OK behavior?
Steps to reproduce
This also occurs when the Reset All button is used and then the screen is switched to 2 balloons. This behavior also occurs in the published sim.
Visuals
Troubleshooting information: !!!!! DO NOT EDIT !!!!! Name: Balloons and Static Electricity URL: https://phet-dev.colorado.edu/html/balloons-and-static-electricity/1.5.0-rc.1/phet/balloons-and-static-electricity_all_phet.html Version: 1.5.0-rc.1 2021-09-07 23:14:39 UTC Features missing: touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15 Language: en-us Window: 1440x683 Pixel Ratio: 2/1 WebGL: WebGL 1.0 GLSL: WebGL GLSL ES 1.0 (1.0) Vendor: WebKit (WebKit WebGL) Vertex: attribs: 16 varying: 31 uniform: 1024 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32) Max viewport: 8192x8192 OES_texture_float: true Dependencies JSON: {}