Skip to content

Commit

Permalink
Hopeful workaround for #81
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jan 25, 2019
1 parent cb0b32c commit a4646a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/intro/view/RoundNumberSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ define( require => {
arrowRotation: options.rotation,
enabledProperty: increaseEnabledProperty,
listener: () => {
numberProperty.value++;
if ( increaseEnabledProperty.value ) {
numberProperty.value++;
}
}
} );

Expand All @@ -59,7 +61,9 @@ define( require => {
arrowRotation: Math.PI + options.rotation,
enabledProperty: decreaseEnabledProperty,
listener: () => {
numberProperty.value--;
if ( decreaseEnabledProperty.value ) {
numberProperty.value--;
}
}
} );

Expand Down

0 comments on commit a4646a4

Please sign in to comment.