From 2c44d8564c8f46114c0f45a428e46a2b2cc1e1ee Mon Sep 17 00:00:00 2001 From: Jesse Date: Tue, 28 May 2024 17:02:47 -0400 Subject: [PATCH] rename RichDragListener -> RichPointerDragListener, see https://github.com/phetsims/scenery-phet/issues/849 and https://github.com/phetsims/scenery/issues/1614 --- js/common/view/FELMovableNode.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/common/view/FELMovableNode.ts b/js/common/view/FELMovableNode.ts index 733c07e4..79409fdd 100644 --- a/js/common/view/FELMovableNode.ts +++ b/js/common/view/FELMovableNode.ts @@ -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'; @@ -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; @@ -90,7 +90,7 @@ export default class FELMovableNode extends InteractiveHighlighting( Node ) { if ( options.isMovable ) { - const dragListener = new RichDragListener( combineOptions( { + const dragListener = new RichPointerDragListener( combineOptions( { positionProperty: positionProperty, dragBoundsProperty: options.dragBoundsProperty, useParentOffset: true,