Skip to content

Commit

Permalink
fix: added default for touches prop (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tino Koch committed Jun 27, 2023
1 parent 1a8d0a5 commit ae0a988
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/controls/OrbitControls.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Camera } from 'three'
import { Camera, TOUCH } from 'three'
import { OrbitControls } from 'three-stdlib'
import { ref, watch, onUnmounted } from 'vue'
import { TresVector3, useRenderLoop } from '@tresjs/core'
Expand Down Expand Up @@ -251,6 +251,7 @@ const {
enableZoom = true,
zoomSpeed = 1,
enableRotate = true,
touches = { ONE: TOUCH.ROTATE, TWO: TOUCH.DOLLY_PAN },
rotateSpeed = 1,
target = [0, 0, 0],
} = defineProps<OrbitControlsProps>()
Expand Down

0 comments on commit ae0a988

Please sign in to comment.