Enable scaling the selection via hotkeys

This commit is contained in:
Quincy Morgan
2020-09-21 14:02:41 -04:00
parent 28ea082892
commit 45decdb54c
8 changed files with 190 additions and 5 deletions
+4
View File
@@ -35,21 +35,25 @@ export function uiZoom(context) {
}];
function zoomIn() {
if (d3_event.shiftKey) return;
d3_event.preventDefault();
context.map().zoomIn();
}
function zoomOut() {
if (d3_event.shiftKey) return;
d3_event.preventDefault();
context.map().zoomOut();
}
function zoomInFurther() {
if (d3_event.shiftKey) return;
d3_event.preventDefault();
context.map().zoomInFurther();
}
function zoomOutFurther() {
if (d3_event.shiftKey) return;
d3_event.preventDefault();
context.map().zoomOutFurther();
}