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 15, 2024
1 parent 2b5018d commit 3e4b324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ async function main() {
canvas.addEventListener("touchstart", (e) => {
carousel = false;
e.preventDefault();
if(touch[1]){
if(e.touches[1]){
startX = e.touches[1].clientX;
startY = e.touches[1].clientY;
}else{
Expand All @@ -1161,7 +1161,7 @@ async function main() {

canvas.addEventListener("touchmove", (e) => {
e.preventDefault();
if (touch[1]) {
if (e.touches[1]) {
let inv = invert4(viewMatrix);
let inv2 = invert4(viewMatrix);
let dx = (5 * (e.touches[1].clientX - startX)) / innerWidth;
Expand Down

0 comments on commit 3e4b324

Please sign in to comment.