Maheshjayachandran / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

TOUCHEND event always have clientX and clientY set as 0, 0 in iOS Simulator 5.0 and iOS 4.2.1 #482

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
code to reproduce the bug:

goog.events.listen(document, goog.events.EventType.TOUCHEND, instance.mouseup);
gg.casino.ui.inputManager.prototype.mouseup    =   function(e) {
    console.log('mouse up ' + e.clientX + ', ' + e.clientY);
}

Expected output:

    mouse up [x] [y]
where x and y are the co-ordinates of my TOUCHEND location

Actual output:

    mouse up 0 0

Same code in Android (2.2.1) Browser is working right, but in iOS Simulator and 
in a iPod Touch with iOS 4.2.1 it returns 0, 0

Original issue reported on code.google.com by sai...@gmail.com on 10 Jul 2012 at 6:39