phetsims / build-a-molecule

"Build a Molecule" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
8 stars 7 forks source link

AtomNode z-order layering is inconsistent #159

Closed Denz1994 closed 4 years ago

Denz1994 commented 4 years ago

The atom nodes are layered based on the order they are added to the play area. They retain this ordering despite being dragged. This can cause an atom to awkwardly layer in front of another and interrupt the look of a bonded molecule (see image below). image

Denz1994 commented 4 years ago

When a molecule is dragged all of its associated molecules are moved to the front of the z-order layering. This should fix the bug and the above case isn't reproducible in Master. Closing.