more restrictive click blocking in intro

block clicks immediately after selecting road to
prevent other selections
This commit is contained in:
Ansis Brammanis
2013-03-29 12:50:05 -04:00
parent aa5fbf4ba1
commit bc8ab73d1f
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -93,8 +93,10 @@ iD.ui.intro.line = function(context, reveal) {
if (mode.id !== 'select') return;
context.map().on('move.intro', null);
context.on('enter.intro', null);
d3.select('#curtain').style('pointer-events', 'all');
timeout(function() {
d3.select('#curtain').style('pointer-events', 'none');
var road = d3.select('.preset-grid .grid-entry').filter(function(d) {
return d.id === 'Road';
});
@@ -121,6 +123,7 @@ iD.ui.intro.line = function(context, reveal) {
};
step.exit = function() {
d3.select('#curtain').style('pointer-events', 'none');
timeouts.forEach(window.clearTimeout);
context.on('enter.intro', null);
context.on('exit.intro', null);
+1
View File
@@ -9,6 +9,7 @@ d3.curtain = function() {
function curtain(selection) {
surface = selection.append('svg')
.attr('id', 'curtain')
.style({
'z-index': 1000,
'pointer-events': 'none',