mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Enable scaling the selection via hotkeys
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user