I'm trying to avoid that annoying zoom effect when scrolling the page.
I'm inside an iframe which show a leaflet.
I have used this code to prevent the zoom:
<div class="overlay" onClick="style.pointerEvents='none'"></div>
.overlay {
background: transparent;
position: absolute;
width: 100%;
height: 100%;
top: 0px;
margin-top: 49px;
}
It works fine when it comes to zoom but it also prevents the click on the navigation arrows.
Is there a way to completely disable the zoom with the mouse wheel and leave the clicks active?
or even better, is there a way to make it zoom just when also the ctrl
key is pressed?