diegoles / 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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
Fixed in 
https://github.com/google/closure-library/commit/b2cc62aeec361ea1279db21b3ed7082
3375d8dad#diff-01579e95a5b65736bffa763fc4797129

Original comment by joelt...@google.com on 20 Aug 2015 at 11:00