From 285a836469ee0218fbdfa481a530ab7c0b948b89 Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Mon, 27 May 2024 17:29:28 +0200 Subject: [PATCH] FIX: Nvm, use endPos --- src/renderer/src/components/device/DevicePreview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/components/device/DevicePreview.vue b/src/renderer/src/components/device/DevicePreview.vue index 2645f21..398b5bc 100644 --- a/src/renderer/src/components/device/DevicePreview.vue +++ b/src/renderer/src/components/device/DevicePreview.vue @@ -124,7 +124,7 @@ const appStore = useAppStore() const deviceStore = useDeviceStore() const devicePosition = computed(() => deviceStore.position || 0) -const maxDetent = computed(() => deviceStore.activeValue?.haptic?.detentCount || 100) +const maxDetent = computed(() => deviceStore.activeValue?.haptic?.endPos || 100) const ringValue = computed(() => (devicePosition.value / maxDetent.value) * 100) const previewDeviceImages = {