From b0f9419653b2e11f5d3d83bd5ec2e4bb4975ea61 Mon Sep 17 00:00:00 2001 From: Grant Date: Thu, 15 Feb 2024 16:06:38 -0700 Subject: [PATCH] change wheel zoom speed (with todo to move it to settings) --- packages/lib/src/renderer/PanZoom.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/lib/src/renderer/PanZoom.ts b/packages/lib/src/renderer/PanZoom.ts index 2c58198..fec65cc 100644 --- a/packages/lib/src/renderer/PanZoom.ts +++ b/packages/lib/src/renderer/PanZoom.ts @@ -310,12 +310,12 @@ export class PanZoom extends EventEmitter { if (newScale === scale) return; - const { x, y } = handleCalculateZoomPositions( - this, - midPoint.x, - midPoint.y, - newScale - ); + // const { x, y } = handleCalculateZoomPositions( + // this, + // midPoint.x, + // midPoint.y, + // newScale + // ); this.touch.pinchMidpoint = midPoint; this.touch.lastDistance = currentDistance; @@ -367,7 +367,8 @@ export class PanZoom extends EventEmitter { break; } - this.nudgeScale(delta); + // TODO: move this to settings + this.nudgeScale(delta / 2); const scale = this.transform.scale; if (oldScale !== scale) {