Improved picker

This commit is contained in:
Devine Lu Linvega
2018-09-17 13:48:39 +12:00
parent b4359518b9
commit 556b6aba40
3 changed files with 30 additions and 49 deletions

View File

@@ -20,7 +20,7 @@ function Cursor()
this.down = function(e)
{
this.pos = this.pos_from_event(e)
this.pos = this.pos_from_event(e);
// Translation
if(dotgrid.tool.vertex_at(this.pos)){
@@ -65,6 +65,7 @@ function Cursor()
}
else if(e.target.id == "guide"){
dotgrid.tool.add_vertex({x:this.pos.x,y:this.pos.y});
dotgrid.picker.stop();
}
this.translate();