dragEnable is gone

This commit is contained in:
John Firebaugh
2012-12-06 19:18:39 -05:00
parent 8854dac623
commit ccd0f0805f
2 changed files with 1 additions and 5 deletions
-2
View File
@@ -14,7 +14,6 @@ iD.modes.DrawRoad = function(wayId, direction) {
tailId = (direction === 'forward') ? _.first(way.nodes) : _.last(way.nodes);
map.dblclickEnable(false)
.dragEnable(false)
.fastEnable(false)
.hint('Click to add more points to the road. ' +
'Click on other roads to connect to them, and double-click to ' +
@@ -90,7 +89,6 @@ iD.modes.DrawRoad = function(wayId, direction) {
.on('⌫.drawroad', null);
window.setTimeout(function() {
mode.map.dblclickEnable(true);
mode.map.dragEnable(true);
}, 1000);
};
+1 -3
View File
@@ -12,8 +12,6 @@ iD.modes.Select = function (entity) {
return { x: p[0], y: p[1] };
})
.on('drag', function(entity) {
if (!mode.map.dragEnable()) return;
d3.event.sourceEvent.stopPropagation();
if (!dragging) {
@@ -31,7 +29,7 @@ iD.modes.Select = function (entity) {
});
})
.on('dragend', function () {
if (!mode.map.dragEnable() || !dragging) return;
if (!dragging) return;
dragging = undefined;
mode.map.redraw();
});