Skip to content

Commit

Permalink
Map: set wheelZoom to be faster (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz authored Aug 7, 2021
1 parent 5da9f06 commit 840ff0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Map/behaviour/useInitMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const useInitMap = () => {
map.addControl(PersistedScaleControl as any);
setUpHover(map, layersWithOsmId);

map.scrollZoom.setWheelZoomRate(1 / 200); // 1/450 is default, bigger value = faster

return () => {
map.remove();
};
Expand Down

1 comment on commit 840ff0f

@vercel
Copy link

@vercel vercel bot commented on 840ff0f Aug 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.