From 6ae83b884cc6c8fe7bd255c26bcbffc435d2f039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Thu, 14 Nov 2024 19:25:40 +0100 Subject: [PATCH] Fix triple popup --- Front/js/backend/match.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Front/js/backend/match.js b/Front/js/backend/match.js index 71df377..b43781e 100644 --- a/Front/js/backend/match.js +++ b/Front/js/backend/match.js @@ -670,14 +670,8 @@ matchList.forEach(record => { const handleVoteTeam2 = () => handleVote(record.id, 'team2', progressTeam1, progressTeam2); voteTeam1Button.addEventListener('click', handleVoteTeam1); - voteTeam1Button.addEventListener('touchstart', handleVoteTeam1); - voteTeam1Button.addEventListener('touchend', handleVoteTeam1); - voteTeam1Button.addEventListener('touchmove', handleVoteTeam1); voteTeam2Button.addEventListener('click', handleVoteTeam2); - voteTeam2Button.addEventListener('touchstart', handleVoteTeam2); - voteTeam2Button.addEventListener('touchend', handleVoteTeam2); - voteTeam2Button.addEventListener('touchmove', handleVoteTeam2); }); // Function to handle voting