Commit 3f775d3c authored by Дмитрий Малюгин's avatar Дмитрий Малюгин 🕓
Browse files

fix: 'ProgressBar'

parent c1334491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ const isClickHold = ref<boolean>(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;