平移速度
This commit is contained in:
@@ -425,8 +425,8 @@ export default {
|
|||||||
if (Math.abs(deltaX) < 1 && Math.abs(deltaY) < 1) return;
|
if (Math.abs(deltaX) < 1 && Math.abs(deltaY) < 1) return;
|
||||||
|
|
||||||
// 移动相机(反转方向以获得自然拖动效果)
|
// 移动相机(反转方向以获得自然拖动效果)
|
||||||
this.cameraX -= deltaX * 0.3 / this.cameraZoom;
|
this.cameraX -= deltaX * 0.05 / this.cameraZoom;
|
||||||
this.cameraY += deltaY * 0.3 / this.cameraZoom;
|
this.cameraY += deltaY * 0.05 / this.cameraZoom;
|
||||||
|
|
||||||
this.previousTouchX = e.touches[0].clientX;
|
this.previousTouchX = e.touches[0].clientX;
|
||||||
this.previousTouchY = e.touches[0].clientY;
|
this.previousTouchY = e.touches[0].clientY;
|
||||||
@@ -486,8 +486,8 @@ export default {
|
|||||||
|
|
||||||
if (Math.abs(deltaX) < 1 && Math.abs(deltaY) < 1) return;
|
if (Math.abs(deltaX) < 1 && Math.abs(deltaY) < 1) return;
|
||||||
|
|
||||||
this.cameraX -= deltaX * 0.3 / this.cameraZoom;
|
this.cameraX -= deltaX * 0.05 / this.cameraZoom;
|
||||||
this.cameraY += deltaY * 0.3 / this.cameraZoom;
|
this.cameraY += deltaY * 0.05 / this.cameraZoom;
|
||||||
|
|
||||||
this.previousTouchX = e.clientX;
|
this.previousTouchX = e.clientX;
|
||||||
this.previousTouchY = e.clientY;
|
this.previousTouchY = e.clientY;
|
||||||
|
|||||||
Reference in New Issue
Block a user