Invert background opacity widget display values (closes #2595)

This commit is contained in:
Bryan Housel
2015-04-20 21:22:10 -04:00
parent f8bd67c169
commit 54d30a18eb

View File

@@ -215,7 +215,7 @@ iD.ui.Background = function(context) {
.placement('left'))
.append('div')
.attr('class', 'opacity')
.style('opacity', String);
.style('opacity', function(d) { return 1.25 - d; });
var backgroundList = content.append('ul')
.attr('class', 'layer-list');