Skip to content

Commit

Permalink
rename RichDragListener -> SoundRichDragListener, see phetsims/scener…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jun 19, 2024
1 parent f98021b commit 79e38a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/alternative-input-quickstart-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ this.addInputListener( {

`DragListener` does NOT handle keyboard input, so you will need to do some additional work for keyboard dragging.

Consider using `scenery-phet/RichDragListener`. It combines a `DragListener` with a `KeyboardDragListener` to support
Consider using `scenery-phet/SoundRichDragListener`. It combines a `DragListener` with a `KeyboardDragListener` to support
both mouse and keyboard dragging. It also includes default PhET drag and drop sounds. This is the recommended approach.

If that doesn't work for you, you can use `KeyboardDragListener` directly. The options for your `DragListener`
and `KeyboardDragListener` will typically be similar, but beware that API differences exist. Avoid duplicating
code - factor out any logic that is needed by both `DragListener` and `KeyboardDragListener`.

Your `RichDragListener` will look something like this:
Your `SoundRichDragListener` will look something like this:

```ts
// pdom - dragging using the keyboard
Expand Down

0 comments on commit 79e38a8

Please sign in to comment.