change wheel zoom speed (with todo to move it to settings)
This commit is contained in:
parent
59c1bd992c
commit
b0f9419653
|
@ -310,12 +310,12 @@ export class PanZoom extends EventEmitter<PanZoomEvents> {
|
||||||
|
|
||||||
if (newScale === scale) return;
|
if (newScale === scale) return;
|
||||||
|
|
||||||
const { x, y } = handleCalculateZoomPositions(
|
// const { x, y } = handleCalculateZoomPositions(
|
||||||
this,
|
// this,
|
||||||
midPoint.x,
|
// midPoint.x,
|
||||||
midPoint.y,
|
// midPoint.y,
|
||||||
newScale
|
// newScale
|
||||||
);
|
// );
|
||||||
|
|
||||||
this.touch.pinchMidpoint = midPoint;
|
this.touch.pinchMidpoint = midPoint;
|
||||||
this.touch.lastDistance = currentDistance;
|
this.touch.lastDistance = currentDistance;
|
||||||
|
@ -367,7 +367,8 @@ export class PanZoom extends EventEmitter<PanZoomEvents> {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.nudgeScale(delta);
|
// TODO: move this to settings
|
||||||
|
this.nudgeScale(delta / 2);
|
||||||
|
|
||||||
const scale = this.transform.scale;
|
const scale = this.transform.scale;
|
||||||
if (oldScale !== scale) {
|
if (oldScale !== scale) {
|
||||||
|
|
Loading…
Reference in New Issue