diff --git a/docs/docs.js b/docs/docs.js index 7c266d1a..9c92ef4d 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -42,7 +42,7 @@ var Z1=Object.create;var gf=Object.defineProperty;var Q1=Object.getOwnPropertyDe `);var rp=Bs(`
npm i -D @perfectthings/ui
diff --git a/src/input/toggle/Toggle.svelte b/src/input/toggle/Toggle.svelte
index f3e4a8ff..e08b68bb 100644
--- a/src/input/toggle/Toggle.svelte
+++ b/src/input/toggle/Toggle.svelte
@@ -167,7 +167,7 @@ function setKnobPosition () {
let handleLeft = handleStartX;
if (isDragging || value) handleLeft -= scrollerStartX;
if (isDragging) handleLeft += currentX;
- handle.style.left = `${Math.round(handleLeft)}px`;
+ handle.style.left = `${Math.round(handleLeft - 1)}px`;
}