mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-01 08:53:41 +00:00
Don't show preset list on hover (fixes #1535)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user