mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-05 10:51:35 +00:00
Fixup fastenable with drawing areas
This commit is contained in:
@@ -7,7 +7,7 @@ iD.modes.DrawArea = function(way_id) {
|
||||
|
||||
mode.map.hint('Click on the map to add points to your area. Finish the ' +
|
||||
'area by clicking on your first point');
|
||||
mode.map.dblclickEnable(false);
|
||||
mode.map.dblclickEnable(false).fastEnable(false);
|
||||
|
||||
var way = mode.history.graph().entity(way_id),
|
||||
firstnode_id = _.first(way.nodes),
|
||||
@@ -68,6 +68,7 @@ iD.modes.DrawArea = function(way_id) {
|
||||
|
||||
mode.exit = function() {
|
||||
mode.map.hint(false);
|
||||
mode.map.fastEnable(true);
|
||||
mode.map.surface
|
||||
.on('mousemove.drawarea', null)
|
||||
.on('click.drawarea', null);
|
||||
|
||||
@@ -6,8 +6,9 @@ iD.modes.DrawRoad = function(way_id, direction) {
|
||||
mode.enter = function() {
|
||||
mode.map.dblclickEnable(false)
|
||||
.dragEnable(false)
|
||||
.fastEnable(false)
|
||||
.hint('Click to add more points to the road. ' +
|
||||
.fastEnable(false);
|
||||
|
||||
mode.map.hint('Click to add more points to the road. ' +
|
||||
'Click on other roads to connect to them, and double-click to ' +
|
||||
'end the road.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user