1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-01 12:23:19 +02:00

fricking debugging man

This commit is contained in:
Pomax
2020-08-08 13:01:35 -07:00
parent f48c9bf17a
commit 3bb6785bd6

View File

@@ -98,8 +98,6 @@ class BaseAPI {
if (!touch[i] || !touch[i].pageX) continue;
this.cursor.x = touch[i].pageX - left;
this.cursor.y = touch[i].pageY - top;
console.log(this.cursor, touch[i], evt.target);
break;
}
} else {
this.cursor.x = evt.pageX - left;
@@ -112,7 +110,6 @@ class BaseAPI {
*/
onMouseDown(evt) {
stop(evt);
this.cursor.button = evt.button;
this.cursor.down = true;
this.getCursorCoords(evt);
}
@@ -122,7 +119,6 @@ class BaseAPI {
*/
onMouseMove(evt) {
stop(evt);
this.cursor.button = undefined;
this.cursor.move = true;
this.getCursorCoords(evt);
}
@@ -132,7 +128,6 @@ class BaseAPI {
*/
onMouseUp(evt) {
stop(evt);
this.cursor.button = evt.button;
this.cursor.down = false;
this.cursor.move = false;
this.getCursorCoords(evt);