Skip to content

Commit

Permalink
revise doc for onChange, phetsims/scenery#1239
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 17, 2021
1 parent 2d9278f commit 3a4784b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/accessibility/AccessibleValueHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ const AccessibleValueHandler = {
startChange: _.noop, // called when a value change sequence starts
endChange: _.noop, // called when a value change sequence ends

// Called after any change to valueProperty. Useful for "press and hold" keyboard input. However, be aware
// that other some devices as switch will only trigger one change per input, and no concept of "press and
// hold". This function will still be called once per input in those cases.
// Called after any change to valueProperty. Useful for input devices that support "press and hold" input.
// However, beware that some input devices, such as a switch, have no concept of "press and hold" and will
// trigger once per input. In those cases, this function will be called once per input.
onChange: _.noop,

// {function(number):number} - Constrains the value, returning a new value for the valueProperty instead.
Expand Down

0 comments on commit 3a4784b

Please sign in to comment.