Fixed error in map

This commit is contained in:
Mitchell McCaffrey 2020-03-26 13:26:20 +11:00
parent b062f93966
commit 4e94567f52

View File

@ -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)