Skip to content

Commit 89cbb13

Browse files
committed
Edit just range value to event.target
1 parent a85edea commit 89cbb13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meme-maker/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ function onMouseMove(event) {
2626
}
2727
}
2828

29-
function lineWidthChange() {
30-
console.dir(lineWidth.value);
31-
ctx.lineWidth = lineWidth.value;
29+
function lineWidthChange(event) {
30+
console.log(event.target.value);
31+
ctx.lineWidth = event.target.value;
3232
}
3333

3434
canvas.addEventListener("mousemove", onMouseMove);

0 commit comments

Comments
 (0)