Skip to content

Commit

Permalink
increase ValueChangeSoundPlayer numberOfMiddleThresholds from 5 (defa…
Browse files Browse the repository at this point in the history
…ult) to 50, #90
  • Loading branch information
pixelzoom committed Mar 6, 2024
1 parent 29773f3 commit 36dd2a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/generator/view/WaterFaucetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export default class WaterFaucetNode extends FaucetNode {
}, providedOptions );

// TEMPORARY SOUND: like Slider.
const soundGenerator = new ValueChangeSoundPlayer( waterFaucet.flowRateProperty.range );
const soundGenerator = new ValueChangeSoundPlayer( waterFaucet.flowRateProperty.range, {
numberOfMiddleThresholds: 50
} );

// TEMPORARY SOUND: drag function shared by mouse/touch drag and keyboard drag.
let previousValue = waterFaucet.flowRateProperty.value;
Expand Down

0 comments on commit 36dd2a1

Please sign in to comment.