i am stupid apparently
This commit is contained in:
parent
a6759c6370
commit
44f745ae34
1 changed files with 2 additions and 2 deletions
|
@ -57,14 +57,14 @@ function Canvas(width, height, upscale) {
|
|||
e.preventDefault();
|
||||
})
|
||||
|
||||
this.elem.addEventListener('touchend', function (e) {
|
||||
this.elem.addEventListener('mouseup', function (e) {
|
||||
that.clicked = false;
|
||||
|
||||
that.firstX = this.pageX;
|
||||
that.firstY = this.pageY;
|
||||
});
|
||||
|
||||
this.elem.addEventListener('mouseup', function (e) {
|
||||
this.elem.addEventListener('touchend', function (e) {
|
||||
that.clicked = false;
|
||||
|
||||
that.firstX = e.touches[0].pageY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue