From 97f35f82ee9a842bd4ee252683c2deee0c8ee6ba Mon Sep 17 00:00:00 2001 From: Jesse Date: Thu, 25 Apr 2024 10:37:06 -0400 Subject: [PATCH] Update usages of KeyboardListener and KeyboardDragListener after changes from https://github.com/phetsims/scenery/issues/1570 --- js/proportional/view/ProportionalDragHandle.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/proportional/view/ProportionalDragHandle.js b/js/proportional/view/ProportionalDragHandle.js index dceda0d..ac472a2 100644 --- a/js/proportional/view/ProportionalDragHandle.js +++ b/js/proportional/view/ProportionalDragHandle.js @@ -176,7 +176,9 @@ class ProportionalDragHandle extends Node { dragDelta: modelViewTransform.modelToViewDeltaX( area.snapSize ), shiftDragDelta: modelViewTransform.modelToViewDeltaX( area.snapSize ), transform: modelViewTransform, - drag: delta => { + drag: ( event, listener ) => { + const delta = listener.vectorDelta; + let width = activeTotalProperties.horizontal.value; let height = activeTotalProperties.vertical.value;