Skip to content

Commit

Permalink
Decrease pan increment with ctrl- modifier key
Browse files Browse the repository at this point in the history
  • Loading branch information
prushforth committed Dec 5, 2021
1 parent b857625 commit 6b6c170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapml/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ L.Map.Keyboard.include({
offset = L.point(offset).multiplyBy(3);
}
if (e.ctrlKey) {
offset = L.point(offset).divideBy(3);
offset = L.point(offset).divideBy(5);
}

map.panBy(offset);
Expand Down

0 comments on commit 6b6c170

Please sign in to comment.