Skip to content

Commit

Permalink
add dots to signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Leone25 committed Jun 5, 2024
1 parent 9aeb04a commit 25a3616
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/sugo.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
this.mouseDown = true;
const ctx = this.$refs.signature.getContext('2d');
ctx.beginPath();
ctx.arc(e.offsetX, e.offsetY, 1.5, 0, 2 * Math.PI);
ctx.fill();
ctx.beginPath();
ctx.moveTo(e.offsetX, e.offsetY);
},
handleMouseMove(e) {
Expand All @@ -88,6 +91,9 @@
e.preventDefault();
this.mouseDown = false;
const ctx = this.$refs.signature.getContext('2d');
ctx.beginPath();
ctx.arc(e.offsetX, e.offsetY, 1.5, 0, 2 * Math.PI);
ctx.fill();
},
handleTouchStart(e) {
e.preventDefault();
Expand Down

0 comments on commit 25a3616

Please sign in to comment.