Spaces:
Running
Running
dylanebert
commited on
Commit
·
e381dc2
1
Parent(s):
b74227d
revert orbit
Browse files
viewer/src/routes/viewer/[slug]/SplatViewer.ts
CHANGED
|
@@ -860,8 +860,8 @@ export class SplatViewer implements IViewer {
|
|
| 860 |
if (this.panning) {
|
| 861 |
this.camera.pan(-dx * this.camera.panSpeed * zoomNorm, -dy * this.camera.panSpeed * zoomNorm);
|
| 862 |
} else {
|
| 863 |
-
this.camera.desiredAlpha
|
| 864 |
-
this.camera.desiredBeta
|
| 865 |
this.camera.desiredBeta = Math.min(Math.max(this.camera.desiredBeta, this.camera.minBeta), this.camera.maxBeta);
|
| 866 |
}
|
| 867 |
|
|
|
|
| 860 |
if (this.panning) {
|
| 861 |
this.camera.pan(-dx * this.camera.panSpeed * zoomNorm, -dy * this.camera.panSpeed * zoomNorm);
|
| 862 |
} else {
|
| 863 |
+
this.camera.desiredAlpha -= dx * this.camera.orbitSpeed;
|
| 864 |
+
this.camera.desiredBeta += dy * this.camera.orbitSpeed;
|
| 865 |
this.camera.desiredBeta = Math.min(Math.max(this.camera.desiredBeta, this.camera.minBeta), this.camera.maxBeta);
|
| 866 |
}
|
| 867 |
|