Skip to content

Commit

Permalink
documentation about focus highlights and animatedPanZoomSingleton, see
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Sep 19, 2023
1 parent 24ddf85 commit d723af7
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 @@ -248,8 +248,8 @@ highlights. If you must use something more custom, it will be your responsibilit
Scenery will pan to put the focused Node in the center of the viewport when focus changes and when the focused Node
moves. Try to make your focused Node the logical interactive display object. For example, if you have a draggable
component that is a child of a larger Node, make the draggable component the focused Node so that scenery can keep
that Node displayed. If you must do something else, you can use animatedPanZoomSingleton to specifically pan to a
Node. For example:
that Node displayed. If you must do something else, you can use animatedPanZoomSingleton to control the panning.
For example:

```js
animatedPanZoomSingleton.listener.panToNode( myNode, false );
Expand Down

0 comments on commit d723af7

Please sign in to comment.