From 17d2e063ffb7d318e8191dc7d59005505aa8e576 Mon Sep 17 00:00:00 2001 From: "Valeriano A.R." Date: Wed, 14 Oct 2015 07:52:51 +0200 Subject: [PATCH] Fix touchend event --- code/GameLib.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/code/GameLib.js b/code/GameLib.js index b0830b2..8528b8d 100644 --- a/code/GameLib.js +++ b/code/GameLib.js @@ -259,10 +259,7 @@ Mouse.prototype = { this.EndPosition.Y = position.Y; }, OnTouchEnd: function(event){ - var position = this.GetEventPoistion({X: event.touches[0].clientX, Y: event.touches[0].clientY}); this.RealDown = false; - this.EndPosition.X = position.X; - this.EndPosition.Y = position.Y; }, Update: function(){ if(this.RealDown == false){