Temporary fix for touchend bug on mobile
This commit is contained in:
parent
9456de9df9
commit
4e8cb2f1a7
|
@ -143,9 +143,9 @@ ascii.Controller.prototype.installTouchBindings = function() {
|
|||
});
|
||||
$(this.view.canvas).bind('touchend', function(e) {
|
||||
e.preventDefault();
|
||||
controller.handleRelease(new ascii.Vector(
|
||||
e.originalEvent.touches[0].pageX,
|
||||
e.originalEvent.touches[0].pageY));
|
||||
// TODO: This works for now as we don't use a touchend position anywhere.
|
||||
// Need to track last position from touchmove and use it here.
|
||||
controller.handleRelease(new ascii.Vector(0, 0));
|
||||
});
|
||||
$(this.view.canvas).bind('touchmove', function(e) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue