Skip to content

Commit ac62b3b

Browse files
author
a-jie
committed
fixed agile_toolkit.js
1 parent 75a95cc commit ac62b3b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plus/agile_toolkit.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@
8888

8989
Agile.DisplayObject.prototype.touchEnd = function(fun) {
9090
this.touchEndHandler = function(e) {
91-
var x = e['targetTouches'] ? e['targetTouches'][0].pageX : e.pageX;
92-
var y = e['targetTouches'] ? e['targetTouches'][0].pageY : e.pageY;
93-
fun(x, y, e);
91+
fun(e);
9492
}
9593
var events = Agile.Device.isPC() ? 'mouseup' : 'touchend';
9694
this.element.addEventListener(events, this.touchEndHandler);

0 commit comments

Comments
 (0)