Fix touchend event

This commit is contained in:
2015-10-14 07:52:51 +02:00
parent 99d43ba212
commit 17d2e063ff

View File

@@ -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){