Skip to content

Commit

Permalink
Prevent ios 2 finger zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Jan 11, 2025
1 parent b8a3c8c commit 9d9e7e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -2257,6 +2257,12 @@ document.addEventListener(
},
{ passive: false }
);
document.addEventListener('touchmove', e => {
if (e.touches.length > 1) {
e.preventDefault();
}
}, {passive: false})
window.lastAdShown = Date.now();
window.gameOpen = Date.now();
// try {
Expand Down

0 comments on commit 9d9e7e3

Please sign in to comment.