Skip to content

Commit

Permalink
use atomic range and value setting, #192
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 8, 2020
1 parent 50dd30a commit 1f84936
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/common/view/TargetNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ define( require => {
transform.viewToModelX( this.screenView.layoutBounds.minX ),
transform.viewToModelX( this.screenView.layoutBounds.maxX )
);
this.targetXProperty.set( Utils.clamp( this.targetXProperty.value, newRange.min, newRange.max ) );
this.targetXProperty.range.value = newRange;
this.targetXProperty.setValueAndRange( Utils.clamp( this.targetXProperty.value, newRange.min, newRange.max ), newRange );

if ( updateInitialValue ) {
this.targetXProperty.range.setInitialValue( newRange );
Expand Down

0 comments on commit 1f84936

Please sign in to comment.