Skip to content

Commit

Permalink
fixed agile_toolkit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
a-jie committed Aug 9, 2014
1 parent 75a95cc commit ac62b3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plus/agile_toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@

Agile.DisplayObject.prototype.touchEnd = function(fun) {
this.touchEndHandler = function(e) {
var x = e['targetTouches'] ? e['targetTouches'][0].pageX : e.pageX;
var y = e['targetTouches'] ? e['targetTouches'][0].pageY : e.pageY;
fun(x, y, e);
fun(e);
}
var events = Agile.Device.isPC() ? 'mouseup' : 'touchend';
this.element.addEventListener(events, this.touchEndHandler);
Expand Down

0 comments on commit ac62b3b

Please sign in to comment.