From 7e3fb57c2909f9eeda7f6d1786551e269ba575f3 Mon Sep 17 00:00:00 2001 From: Petros Pathoulas Date: Fri, 29 May 2020 18:28:07 +0300 Subject: [PATCH] Dont scroll the page when the card is rotated --- mapa1.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mapa1.html b/mapa1.html index 7f55a09..556369b 100755 --- a/mapa1.html +++ b/mapa1.html @@ -88,6 +88,9 @@ }); card.addEventListener('wheel', e => { + if(card.classList.contains('rotated')) { + e.preventDefault(); + } const zoom = e.deltaY > 0 ? 'out' : 'in'; if(zoom === 'in') { card.classList.add('scaledup');