Don't show preset list on hover (fixes #1535)

This commit is contained in:
John Firebaugh
2013-05-29 11:12:42 -07:00
parent b04d8e3e1e
commit e959002e03

View File

@@ -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()