Skip to content

Commit

Permalink
Rename vectorDelta to modelDelta and other KeyboardDragListener impro…
Browse files Browse the repository at this point in the history
…vements, see phetsims/scenery#1635
  • Loading branch information
jessegreenberg committed Jun 3, 2024
1 parent 64f31a8 commit 5f6f0a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/quadrilateral/view/QuadrilateralSideNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class QuadrilateralSideNode extends QuadrilateralMovableNode {
shiftDragDelta: this.smallViewDragDelta,
transform: modelViewTransform,
drag: ( event, listener ) => {
this.moveVerticesFromModelDelta( listener.vectorDelta );
this.moveVerticesFromModelDelta( listener.modelDelta );
},

moveOnHoldDelay: 750,
Expand Down
2 changes: 1 addition & 1 deletion js/quadrilateral/view/QuadrilateralVertexNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class QuadrilateralVertexNode extends QuadrilateralMovableNode {

transform: modelViewTransform,
drag: ( event, listener ) => {
const proposedPosition = quadrilateralModel.getClosestGridPositionInDirection( vertex.positionProperty.value, listener.vectorDelta );
const proposedPosition = quadrilateralModel.getClosestGridPositionInDirection( vertex.positionProperty.value, listener.modelDelta );

// constrain to model bounds
const inBoundsPosition = quadrilateralModel.vertexDragBounds.closestPointTo( proposedPosition );
Expand Down

0 comments on commit 5f6f0a0

Please sign in to comment.