Skip to content

Commit

Permalink
also unbind from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Dec 21, 2023
1 parent 9efda03 commit 77df94d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/neuroglancer/ui/default_viewer_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export function setupDefaultViewer() {
} else if (typeof val === 'boolean') {
if (!val) {
viewer.inputEventBindings.global.delete(key);
viewer.inputEventBindings.global.parents.map(parent => parent.delete(key));
}
} else {
viewer.inputEventBindings.global.set(key, `tool-${val.tool}`);
Expand Down

0 comments on commit 77df94d

Please sign in to comment.