Skip to content

Commit

Permalink
Merge pull request #7 from szres/fix-mobile-touch
Browse files Browse the repository at this point in the history
fix: fix touch response by preventDefault
  • Loading branch information
Nigh committed Apr 23, 2024
2 parents 1ab8681 + 0cdd2de commit ad4336e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/Glyph.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
offsetX: clientX - touchLeft,
offsetY: clientY - touchTop
});
e.preventDefault();
};
const drawEnd = () => {
if (isDrawing) {
Expand Down Expand Up @@ -334,6 +335,7 @@
offsetX: clientX - touchLeft,
offsetY: clientY - touchTop
});
e.preventDefault();
};
</script>

Expand Down

0 comments on commit ad4336e

Please sign in to comment.