Skip to content

Commit 4679daf

Browse files
author
Rich Harris
committed
provide useful min value
1 parent 2c7cb81 commit 4679daf

File tree

2 files changed

+4
-4
lines changed
  • content/tutorial/03-advanced-svelte/01-motion/02-springs

2 files changed

+4
-4
lines changed

content/tutorial/03-advanced-svelte/01-motion/02-springs/app-a/src/lib/App.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<input
2626
bind:value={coords.stiffness}
2727
type="range"
28-
min="0"
28+
min="0.01"
2929
max="1"
3030
step="0.01"
3131
/>
@@ -36,7 +36,7 @@
3636
<input
3737
bind:value={coords.damping}
3838
type="range"
39-
min="0"
39+
min="0.01"
4040
max="1"
4141
step="0.01"
4242
/>

content/tutorial/03-advanced-svelte/01-motion/02-springs/app-b/src/lib/App.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<input
3030
bind:value={coords.stiffness}
3131
type="range"
32-
min="0"
32+
min="0.01"
3333
max="1"
3434
step="0.01"
3535
/>
@@ -40,7 +40,7 @@
4040
<input
4141
bind:value={coords.damping}
4242
type="range"
43-
min="0"
43+
min="0.01"
4444
max="1"
4545
step="0.01"
4646
/>

0 commit comments

Comments
 (0)