Skip to content

Commit 019ccaf

Browse files
authored
fix: add smooth control multiplier to VRM X axis slider (#946)
1 parent bc05e1e commit 019ccaf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/stage-layouts/src/components/Layouts/ViewControls

packages/stage-layouts/src/components/Layouts/ViewControls/Inputs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const viewControlsValueX = computed({
2020
case 'live2d':
2121
return live2dPosition.value.x
2222
case 'vrm':
23-
return vrmPosition.value.x
23+
return vrmPosition.value.x * 100
2424
default:
2525
return 0
2626
}
@@ -31,7 +31,7 @@ const viewControlsValueX = computed({
3131
live2dPosition.value.x = value
3232
break
3333
case 'vrm':
34-
vrmPosition.value.x = value
34+
vrmPosition.value.x = value / 100
3535
break
3636
default:
3737
break
@@ -64,7 +64,7 @@ const viewControlsValueY = computed({
6464
live2dPosition.value.y = -value
6565
break
6666
case 'vrm':
67-
vrmPosition.value.y = value * 0.01
67+
vrmPosition.value.y = value / 100
6868
break
6969
default:
7070
break

0 commit comments

Comments
 (0)