Fixed issues with cursor

This commit is contained in:
Devine Lu Linvega
2017-05-21 14:12:51 -10:00
parent 8ded549ae8
commit a9f76f6100
19 changed files with 137 additions and 235 deletions

View File

@@ -4,9 +4,9 @@ function Position(position_str = "0,0",y = null)
this.example = "100,150";
this.position_str = position_str;
this.x = y != null ? position_str : parseFloat(this.position_str.split(",")[0]);
this.y = y != null ? y : parseFloat(this.position_str.split(",")[1]);
this.x = y != null ? position_str : parseFloat(position_str.split(",")[0]);
this.y = y != null ? y : parseFloat(position_str.split(",")[1]);
this.add = function(position)
{