Fixup fastenable with drawing areas

This commit is contained in:
Tom MacWright
2012-12-06 18:09:30 -05:00
parent 54ff10ca6a
commit 7fea779e8c
2 changed files with 5 additions and 3 deletions

View File

@@ -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);

View File

@@ -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.');