Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonyyu-1 authored Jul 9, 2024
1 parent 4ebd606 commit cd4ef17
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,21 @@ async function main() {
}
});

canvas.addEventListener("mouseup", (e) => {
e.preventDefault();
down = false;
startX = 0;
startY = 0;
});

canvas.addEventListener("touchstart", (e) => {
carousel = false;
e.preventDefault();
startX = e.clientX;
startY = e.clientY;
down = 1
});

canvas.addEventListener("touchmove", (e) => {
e.preventDefault();
if (down == 1) {
Expand Down Expand Up @@ -1163,15 +1178,20 @@ async function main() {
startY = e.clientY;
}
});

canvas.addEventListener("mouseup", (e) => {


canvas.addEventListener("touchend", (e) => {
e.preventDefault();
down = false;
startX = 0;
startY = 0;
});








let jumpDelta = 0;
let vertexCount = 0;
Expand Down

0 comments on commit cd4ef17

Please sign in to comment.