From 7fea779e8c12bcceb334edf150dc49770389289d Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 6 Dec 2012 18:09:30 -0500 Subject: [PATCH] Fixup fastenable with drawing areas --- js/id/modes/draw_area.js | 3 ++- js/id/modes/draw_road.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/id/modes/draw_area.js b/js/id/modes/draw_area.js index 70ef0aaee..83cc80030 100644 --- a/js/id/modes/draw_area.js +++ b/js/id/modes/draw_area.js @@ -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); diff --git a/js/id/modes/draw_road.js b/js/id/modes/draw_road.js index 5e9ad0415..e8a637e3f 100644 --- a/js/id/modes/draw_road.js +++ b/js/id/modes/draw_road.js @@ -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.');