change wheel zoom speed (with todo to move it to settings)

This commit is contained in:
Grant 2024-02-15 16:06:38 -07:00
parent 59c1bd992c
commit b0f9419653
1 changed files with 8 additions and 7 deletions

View File

@ -310,12 +310,12 @@ export class PanZoom extends EventEmitter<PanZoomEvents> {
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<PanZoomEvents> {
break;
}
this.nudgeScale(delta);
// TODO: move this to settings
this.nudgeScale(delta / 2);
const scale = this.transform.scale;
if (oldScale !== scale) {