Skip to content

Commit

Permalink
doc, #90
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 6, 2024
1 parent cbade0c commit bed99cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/generator/view/WaterFaucetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class WaterFaucetNode extends FaucetNode {
// TEMPORARY SOUND, like Slider.
const soundGenerator = new ValueChangeSoundPlayer( waterFaucet.flowRateProperty.range );

// TEMPORARY SOUND for keyboard drag. It's unclear why options.drag does not also apply to mouse/touch drag.
// TEMPORARY SOUND for keyboard drag.
let previousValue = waterFaucet.flowRateProperty.value;
options.drag = event => {
if ( event.isFromPDOM() ) {
Expand All @@ -56,7 +56,7 @@ export default class WaterFaucetNode extends FaucetNode {

super( waterFaucet.flowRateProperty.range.max, waterFaucet.flowRateProperty, new Property( true ), options );

// TEMPORARY SOUND mouse/touch drag. It's unclear why options.drag does not also handle this.
// TEMPORARY SOUND mouse/touch drag.
this.addInputListener( new DragListener( {
attach: false,
drag: ( event, listener ) => options.drag( event ),
Expand Down

0 comments on commit bed99cd

Please sign in to comment.