Skip to content

Commit

Permalink
Prune the positionProperty option to only specify 'value', see #1590
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 12, 2023
1 parent c01848d commit 7df1efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/listeners/DragListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ type SelfOptions<Listener extends DragListener> = {
// frame (applying any provided transforms as needed). Typically, DURING a drag this Property should not be
// modified externally (as the next drag event will probably undo the change), but it's completely fine to modify
// this Property at any other time.
positionProperty?: TProperty<Vector2> | null;
positionProperty?: Pick<TProperty<Vector2>, 'value'> | null;

// Called as start( event: {SceneryEvent}, listener: {DragListener} ) when the drag is started.
// This is preferred over passing press(), as the drag start hasn't been fully processed at that point.
Expand Down

0 comments on commit 7df1efe

Please sign in to comment.