Skip to content

Commit 6fe09e9

Browse files
committed
Demo Added
1 parent 735b564 commit 6fe09e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-knob",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"scripts": {
55
"build": "rollup -c",
66
"dev": "rollup -c -w",

src/Knob.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export let valueDisplayFunction = (v) => v;
7777
onMount(async () => {
7878
dashLength()
7979
clearInterval(interval);
80-
console.log(min,max,value)
80+
8181
interval = null;
8282
if (animation.animateValue) {
8383
interval = setInterval(() => {
@@ -149,7 +149,7 @@ function updatePosition(offsetX, offsetY) {
149149
150150
return;
151151
}
152-
console.log(mappedValue)
152+
153153
154154
value = Math.round((mappedValue - min) / step) * step + min;
155155
@@ -214,7 +214,7 @@ function onTouchMove(e) {
214214
};
215215
216216
function dashLength() {
217-
console.log(pathValue)
217+
218218
let element = pathValue;
219219
let length = element.getTotalLength()
220220
if (animation.animated) {

0 commit comments

Comments
 (0)