diff --git a/src/core/controls/DragControls.vue b/src/core/controls/DragControls.vue index 4720b6fd..ece34835 100644 --- a/src/core/controls/DragControls.vue +++ b/src/core/controls/DragControls.vue @@ -17,7 +17,7 @@ export interface TransformControlsProps { * @memberof OrbitControlsProps * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.domElement */ - domElement?: HTMLElement + domElement?: HTMLElement } withDefaults(defineProps(), { @@ -34,7 +34,7 @@ const controlsRef = ref(null) extend({ DragControls }) watchEffect(() => { - if(controlsRef.value) { + if (controlsRef.value) { addEventListeners() } }) @@ -63,7 +63,7 @@ defineExpose({ value: controlsRef }) :objects="objects" :camera="camera || activeCamera" :mode="mode" - :enabled="enabled" + :enabled="enabled" :args="[objects, camera || activeCamera, domElement || renderer.domElement]" /> - \ No newline at end of file + diff --git a/src/core/controls/index.ts b/src/core/controls/index.ts index 820e3714..0d9b1a67 100644 --- a/src/core/controls/index.ts +++ b/src/core/controls/index.ts @@ -16,5 +16,5 @@ export { ScrollControls, CameraControls, BaseCameraControls, - DragControls + DragControls, }