1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-06 14:40:41 +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; if (!touch[i] || !touch[i].pageX) continue;
this.cursor.x = touch[i].pageX - left; this.cursor.x = touch[i].pageX - left;
this.cursor.y = touch[i].pageY - top; this.cursor.y = touch[i].pageY - top;
console.log(this.cursor, touch[i], evt.target);
break;
} }
} else { } else {
this.cursor.x = evt.pageX - left; this.cursor.x = evt.pageX - left;
@@ -112,7 +110,6 @@ class BaseAPI {
*/ */
onMouseDown(evt) { onMouseDown(evt) {
stop(evt); stop(evt);
this.cursor.button = evt.button;
this.cursor.down = true; this.cursor.down = true;
this.getCursorCoords(evt); this.getCursorCoords(evt);
} }
@@ -122,7 +119,6 @@ class BaseAPI {
*/ */
onMouseMove(evt) { onMouseMove(evt) {
stop(evt); stop(evt);
this.cursor.button = undefined;
this.cursor.move = true; this.cursor.move = true;
this.getCursorCoords(evt); this.getCursorCoords(evt);
} }
@@ -132,7 +128,6 @@ class BaseAPI {
*/ */
onMouseUp(evt) { onMouseUp(evt) {
stop(evt); stop(evt);
this.cursor.button = evt.button;
this.cursor.down = false; this.cursor.down = false;
this.cursor.move = false; this.cursor.move = false;
this.getCursorCoords(evt); this.getCursorCoords(evt);