Maheshjayachandran / closure-library

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

WebKit issues with event.layerX and event.layerY (console msgs) #406

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Add goog.require('goog.events');
2. Run in Chrome

What is the expected output? What do you see instead?
Expected output is nothing. Currently, an unnecessary warning message is 
generated in the console "event.layerX and event.layerY are broken and 
deprecated in WebKit. They will be removed from the engine in the near future."

What version of the product are you using? On what operating system?
Browser: Chrome 16 / Mac OSx / Closure 

Please provide any additional information below.
Get rid of the fallbacks that point to event.layerX/Y in 
"closure/goog/events/browserevents.js":

Line 270: this.offsetX = e.offsetX !== undefined ? e.offsetX : e.layerX;
Line 271: this.offsetY = e.offsetY !== undefined ? e.offsetY : e.layerY;

jQuery has also addressed this: http://bugs.jquery.com/ticket/10531

Screenshot of warning message: http://cl.ly/041w2Y451V3K0t0a0W1s

Original issue reported on code.google.com by clarke.d...@gmail.com on 15 Dec 2011 at 7:12

GoogleCodeExporter commented 9 years ago
i'm pretty sure this is already fixed at head.

Original comment by Nicholas.J.Santos on 15 Dec 2011 at 8:21