don't transition inspector when reselecting

fixes #1189
This commit is contained in:
Ansis Brammanis
2013-03-28 19:27:30 -04:00
parent ab670eae2c
commit c31ce3ebd9

View File

@@ -22,13 +22,16 @@ iD.ui.Inspector = function(context, entity) {
}
function inspector(selection) {
var reselect = selection.html();
selection
.html('')
.style('display', 'block')
.style('right', '-500px')
.style('opacity', 1)
.transition()
.duration(200)
.duration(reselect ? 0 : 200)
.style('right', '0px');
var panewrap = selection