Skip to content

Commit

Permalink
Scrollwheelzoom true in maps
Browse files Browse the repository at this point in the history
  • Loading branch information
antongomez committed Mar 10, 2023
1 parent b923746 commit 6664719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Inicio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const Inicio = () => {
<MapContainer
center={defaultCenter}
zoom={10}
scrollWheelZoom={false}
scrollWheelZoom={true}
style={containerStyle}
onClick={(e) => {
setPosition(e.latlng)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Resultados.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const Resultados = () => {
/* Punto medio da ruta */
center={{lat: (orixe.lat + destino.lat)/2, lng: (orixe.lng + destino.lng)/2}}
zoom={9}
scrollWheelZoom={false}
scrollWheelZoom={true}
style={containerStyle}
>

Expand Down

0 comments on commit 6664719

Please sign in to comment.