diff --git a/src/components/ProgressBar/ProgressBar.vue b/src/components/ProgressBar/ProgressBar.vue index 769b298a9b5757c48f473ff2b0f67c8d851e12f1..5245203f557bc035cad4834dde2a533f34fc0f89 100644 --- a/src/components/ProgressBar/ProgressBar.vue +++ b/src/components/ProgressBar/ProgressBar.vue @@ -57,7 +57,7 @@ const isClickHold = ref(false); const setNewValue = (event: MouseEvent) => { const layerX = event.layerX; - value.value = Math.round((layerX / (props.width ? parseInt(props.width) : 300)) * props.max); + value.value = Math.round((layerX / (props.width ? parseInt(props.width) - 1 : 299)) * props.max); }; const onPointerDown = (event: MouseEvent) => { isClickHold.value = true;