Skip to content

Commit

Permalink
rename RichDragListener -> RichPointerDragListener, see phetsims/scen…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed May 28, 2024
1 parent 2fb8ba8 commit 2c44d85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/common/view/FELMovableNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import PickOptional from '../../../../phet-core/js/types/PickOptional.js';
import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import TReadOnlyProperty from '../../../../axon/js/TReadOnlyProperty.js';
import Bounds2 from '../../../../dot/js/Bounds2.js';
import RichDragListener, { RichDragListenerOptions } from '../../../../scenery-phet/js/RichDragListener.js';
import RichPointerDragListener, { RichPointerDragListenerOptions } from '../../../../scenery-phet/js/RichPointerDragListener.js';
import RichKeyboardDragListener, { RichKeyboardDragListenerOptions } from '../../../../scenery-phet/js/RichKeyboardDragListener.js';
import Property from '../../../../axon/js/Property.js';
import Vector2 from '../../../../dot/js/Vector2.js';
Expand All @@ -25,8 +25,8 @@ type SelfOptions = {
// Use this option to enable or disable interaction.
isMovable?: boolean;

// Options passed to RichDragListener.
dragListenerOptions?: RichDragListenerOptions;
// Options passed to RichPointerDragListener.
dragListenerOptions?: RichPointerDragListenerOptions;

// Whether this Node has a KeyboardDragListener. Ignored if isMovable: false.
hasKeyboardDragListener?: boolean;
Expand Down Expand Up @@ -90,7 +90,7 @@ export default class FELMovableNode extends InteractiveHighlighting( Node ) {

if ( options.isMovable ) {

const dragListener = new RichDragListener( combineOptions<RichDragListenerOptions>( {
const dragListener = new RichPointerDragListener( combineOptions<RichPointerDragListenerOptions>( {
positionProperty: positionProperty,
dragBoundsProperty: options.dragBoundsProperty,
useParentOffset: true,
Expand Down

0 comments on commit 2c44d85

Please sign in to comment.