Skip to content

Commit

Permalink
fix an error with a previous fix for handling stacking, see #425 and #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Oct 26, 2023
1 parent 95e21a8 commit 522d1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/model/UserMovableModelElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class UserMovableModelElement extends ModelElement {
);

// TODO: likely this check should not be graceful and should actually be right, https://github.com/phetsims/energy-forms-and-changes/issues/424
if ( supportingSurface.positionProperty.hasListener( this.surfaceMotionObserver ) ) {
if ( !supportingSurface.positionProperty.hasListener( this.surfaceMotionObserver ) ) {
supportingSurface.positionProperty.link( this.surfaceMotionObserver );
}
this.supportingSurface = supportingSurface;
Expand Down

0 comments on commit 522d1f0

Please sign in to comment.