Fixed error in map
This commit is contained in:
parent
b062f93966
commit
4e94567f52
@ -53,7 +53,6 @@ function Map({
|
||||
}, []);
|
||||
|
||||
function handleZoom(event) {
|
||||
event.preventDefault();
|
||||
const deltaY = event.deltaY * zoomSpeed;
|
||||
setMapScale(mapScale =>
|
||||
Math.max(Math.min(mapScale + deltaY, maxZoom), minZoom)
|
||||
|
Loading…
Reference in New Issue
Block a user