From e959002e033a2eb61f98b74c9a7a4386773c8d63 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 29 May 2013 11:12:42 -0700 Subject: [PATCH] Don't show preset list on hover (fixes #1535) --- js/id/ui/inspector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index b66d90dde..b4270dfad 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -30,7 +30,8 @@ iD.ui.Inspector = function(context) { .entityID(entityID) .on('choose', showList)); - $wrap.style('right', context.entity(entityID).isUsed(context.graph()) ? '-0%' : '-100%'); + var showEditor = state === 'hover' || context.entity(entityID).isUsed(context.graph()); + $wrap.style('right', showEditor ? '-0%' : '-100%'); function showList(preset) { $wrap.transition()