mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Update stepper
This commit is contained in:
@@ -15,6 +15,10 @@ declare("iD.controller.edit.NoSelection", [iD.controller.ControllerState], {
|
||||
constructor:function() {
|
||||
},
|
||||
|
||||
enterState:function() {
|
||||
this.controller.stepper.hide();
|
||||
},
|
||||
|
||||
processMouseEvent:function(event,entityUI) {
|
||||
this.inherited(arguments);
|
||||
if (!entityUI) { return this; }
|
||||
|
||||
@@ -92,10 +92,12 @@ declare("iD.controller.shape.DrawWay", [iD.controller.ControllerState], {
|
||||
// Click on node
|
||||
if (entity==this.getDrawingNode()) {
|
||||
// Double-click, so complete drawing
|
||||
this.controller.stepper.highlight(3);
|
||||
return new iD.controller.edit.SelectedWay(this.way);
|
||||
} else if (entity==this.getStartNode()) {
|
||||
// Start of this way, so complete drawing
|
||||
this.appendNode(entity, this.undoAdder() );
|
||||
this.controller.stepper.highlight(3);
|
||||
return new iD.controller.edit.SelectedWay(this.way);
|
||||
} else {
|
||||
// Add to way
|
||||
|
||||
Reference in New Issue
Block a user