From fd49f47edec671809f01b09d1a72089cda067b35 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 22 Nov 2017 22:29:06 -0500 Subject: [PATCH] Now background, map_data, help stay open when user clicks on map surface There is really no need to hide these, and the user might just want to keep the pane open (e.g. viewing help) while they do stuff. --- modules/ui/background.js | 3 --- modules/ui/help.js | 3 --- modules/ui/map_data.js | 4 ---- 3 files changed, 10 deletions(-) diff --git a/modules/ui/background.js b/modules/ui/background.js index 8f1ba2d2f..9b58c79d5 100644 --- a/modules/ui/background.js +++ b/modules/ui/background.js @@ -568,9 +568,6 @@ export function uiBackground(context) { d3_select(document) .call(keybinding); - - context.surface().on('mousedown.background-outside', hide); - context.container().on('mousedown.background-outside', hide); } return background; diff --git a/modules/ui/help.js b/modules/ui/help.js index 7b293efe6..45e5b27aa 100644 --- a/modules/ui/help.js +++ b/modules/ui/help.js @@ -439,9 +439,6 @@ export function uiHelp(context) { d3_select(document) .call(keybinding); - - context.surface().on('mousedown.help-outside', hide); - context.container().on('mousedown.help-outside', hide); } return help; diff --git a/modules/ui/map_data.js b/modules/ui/map_data.js index 49a238ba3..fb522c098 100644 --- a/modules/ui/map_data.js +++ b/modules/ui/map_data.js @@ -492,11 +492,7 @@ export function uiMapData(context) { d3_select(document) .call(keybinding); - - context.surface().on('mousedown.map_data-outside', hidePanel); - context.container().on('mousedown.map_data-outside', hidePanel); } - return map_data; }