mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
fix toggling new note button
This commit is contained in:
@@ -99,7 +99,11 @@ export function uiModes(context) {
|
||||
|
||||
modes.forEach(function(mode) {
|
||||
keybinding.on(mode.key, function() {
|
||||
if (editable()) {
|
||||
// TODO: allow zooming out beyond minZoom when adding new note. Currently prevented
|
||||
if (
|
||||
(editable() && mode.id !== 'add-note')
|
||||
|| (toggleNewNote() && mode.id === 'add-note')
|
||||
) {
|
||||
if (mode.id === context.mode().id) {
|
||||
context.enter(modeBrowse(context));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user