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);