Skip to content

Commit

Permalink
- move 'mouse' off canvas after mobile touch end
Browse files Browse the repository at this point in the history
  • Loading branch information
Lmears committed Jun 29, 2024
1 parent 2022b69 commit 04b60f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/boid-simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ function setupEventListeners() {

document.addEventListener('touchend', () => {
mouseInfluence = false;
mouse.x = -1;
mouse.y = -1;
});

window.addEventListener('resize', () => {
Expand Down

0 comments on commit 04b60f2

Please sign in to comment.