Open GoogleCodeExporter opened 8 years ago
Original comment by ryan...@csail.mit.edu
on 23 Jun 2011 at 10:29
Original comment by ryan...@csail.mit.edu
on 23 Jun 2011 at 10:34
I found the same problem on IE8. We have fixed the method
getEventPageCoordinates inside simile-ajax-bundle.js as follows
SimileAjax.DOM.getEventPageCoordinates = function (A) {
if (SimileAjax.Platform.browser.isIE) {
var scrOfY = 0;
var scrOfX = 0;
if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
//DOM compliant
scrOfY = document.body.scrollTop;
scrOfX = document.body.scrollLeft;
} else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
//IE6 standards compliant mode
scrOfY = document.documentElement.scrollTop;
scrOfX = document.documentElement.scrollLeft;
}
return { x: A.clientX + scrOfX, y: A.clientY + scrOfY };
} else {
return { x: A.pageX, y: A.pageY };
}
};
it may also resolve the behavior described by Issue 248
Fixed By Christian Garofalo and Dmitrij Ivanov
Original comment by dmitrij....@gmail.com
on 16 Sep 2011 at 11:41
Attachments:
Original issue reported on code.google.com by
prana...@gmail.com
on 6 Jun 2010 at 5:45