Skip to content

Commit

Permalink
breaking: A FlingRotation instance no longer automatically starts on
Browse files Browse the repository at this point in the history
construction; the `start()` method should be called manually after instantiation.
  • Loading branch information
trusktr committed Jun 6, 2021
1 parent f1a2856 commit 8a1b4b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lume/src/cameras/CameraRig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class CameraRig extends Node {
rotationYTarget: this,
minFlingRotationX: this.minPolarAngle,
maxFlingRotationX: this.maxPolarAngle,
})
}).start()

this.scrollFling = new ScrollFling({
target: this.scene,
Expand Down
2 changes: 0 additions & 2 deletions packages/lume/src/interaction/FlingRotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ export class FlingRotation {
// specified by the input options), at least for now.
if (!this.rotationXTarget) this.rotationXTarget = this.rotationYTarget.children[0] as Node
if (!this.interactionInitiator) this.interactionInitiator = this.rotationXTarget

this.start()
}

#onMove?: (event: PointerEvent) => void
Expand Down

0 comments on commit 8a1b4b7

Please sign in to comment.