Skip to content

Commit

Permalink
Update usages of KeyboardListener and KeyboardDragListener after chan…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 25, 2024
1 parent 9b53ece commit c72a2f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/MassView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ export default abstract class MassView extends Disposable {

// This is needed for keyboard but not for mouse/touch because keyboard input applies deltas, not absolute positions
transform: INVERT_Y_TRANSFORM,
drag: ( vectorDelta: Vector2 ) => {
mass.updateDrag( mass.matrix.translation.add( vectorDelta ) );
drag: ( event, listener ) => {
mass.updateDrag( mass.matrix.translation.add( listener.vectorDelta ) );
},
tandem: Tandem.OPT_OUT
} );
Expand Down

0 comments on commit c72a2f3

Please sign in to comment.