From 3bb6785bd6174f22308d975128bdff763f09f21c Mon Sep 17 00:00:00 2001 From: Pomax Date: Sat, 8 Aug 2020 13:01:35 -0700 Subject: [PATCH] fricking debugging man --- lib/custom-element/api/base-api.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/custom-element/api/base-api.js b/lib/custom-element/api/base-api.js index 7484db08..14aa0e59 100644 --- a/lib/custom-element/api/base-api.js +++ b/lib/custom-element/api/base-api.js @@ -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);