Hi all,
I have this BUG when use jQuery in IE and find just one coment about it in the internet:
http://lists.wymeditor.org/pipermail/wymeditor-devel/2007-March/000016.html
Its give me a very important information (where the bug is), but don't resolve the problem.
Look at the code I found the following lines:
1321: if ( event.pageX == undefined && event.clientX != undefined ) {
1322: var e = document.documentElement, b = document.body;
1323: event.pageX = event.clientX + (e.scrollLeft || b.scrollLeft);
1324: event.pageY = event.clientY + (e.scrollTop || b.scrollTop);
1325: }
I don't understand why the BUG fired at 1324 and not in the 1323... I think is a message erro problem of the IE.
I change the code to this:
if ( event.pageX == undefined && event.clientX != undefined ) {
var e = document.documentElement, b = document.body;
if (e) {
event.pageX = event.clientX + (e.scrollLeft);
event.pageY = event.clientY + (e.scrollTop);
}
else if (b) {
event.pageX = event.clientX + (b.scrollLeft);
event.pageY = event.clientY + (b.scrollTop);
}
}
With this, the BUG was fixed. I send this to you to verified the impact of this change in the core of the jQuery.
Regards
Márcio Duarte