mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
dragEnable is gone
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user