Skip to content

Commit

Permalink
pan thumb to the center of the viewport, see phetsims/scenery#1558
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Sep 19, 2023
1 parent 70dbddf commit 3c12b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/accessibility/AccessibleValueHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ const AccessibleValueHandler = <SuperType extends Constructor<Node>>( Type: Supe
this._onInput( event );

// after any keyboard input, make sure that the Node stays in view
animatedPanZoomSingleton.initialized && animatedPanZoomSingleton.listener.panToNode( this._panTargetNode || this, false );
animatedPanZoomSingleton.initialized && animatedPanZoomSingleton.listener.panToNode( this._panTargetNode || this, true );
}
}
}
Expand Down

0 comments on commit 3c12b5f

Please sign in to comment.