fixed screen dragging. super smooth now

This commit is contained in:
MaxRobinsonTheGreat
2020-07-24 11:42:45 -06:00
parent 22e39b22ee
commit 55024734b3
4 changed files with 18 additions and 9 deletions

View File

@@ -29,6 +29,7 @@ class CanvasController{
this.canvas.addEventListener('mouseup', function(evt) {
evt.preventDefault();
this.updateMouseLocation(evt.offsetX, evt.offsetY)
this.mouseUp();
this.left_click=false;
this.right_click=false;
}.bind(this));
@@ -80,11 +81,15 @@ class CanvasController{
}
mouseMove() {
alert("mouse move must be overriden");
alert("mouse move must be overridden");
}
mouseDown() {
alert("mouse down must be overriden");
alert("mouse down must be overridden");
}
mouseUp(){
alert("mouse up must be overridden")
}
}