diff --git a/js/common/view/MassView.ts b/js/common/view/MassView.ts index 4851a9d2..8ae9d1c4 100644 --- a/js/common/view/MassView.ts +++ b/js/common/view/MassView.ts @@ -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 } );