diff --git a/src/controls/experimental/CameraControls.ts b/src/controls/experimental/CameraControls.ts index 811b0018..8d70954a 100644 --- a/src/controls/experimental/CameraControls.ts +++ b/src/controls/experimental/CameraControls.ts @@ -15,15 +15,15 @@ export type CHANGE_EVENT = { type: 'change' | 'start' | 'end' } -export enum STATE { - NONE = -1, - ROTATE = 0, - DOLLY = 1, - PAN = 2, - TOUCH_ROTATE = 3, - TOUCH_PAN = 4, - TOUCH_DOLLY_PAN = 5, - TOUCH_DOLLY_ROTATE = 6, +export const STATE = { + NONE: -1, + ROTATE: 0, + DOLLY: 1, + PAN: 2, + TOUCH_ROTATE: 3, + TOUCH_PAN: 4, + TOUCH_DOLLY_PAN: 5, + TOUCH_DOLLY_ROTATE: 6, } class CameraControls extends EventDispatcher {