#310 scrolling the documentElement
This commit is contained in:
@@ -73,13 +73,8 @@ SQL.Map.prototype.move = function(e) { /* mousemove */
|
||||
var left = this.l / coefX;
|
||||
var top = this.t / coefY;
|
||||
|
||||
if (OZ.webkit) {
|
||||
document.body.scrollLeft = Math.round(left);
|
||||
document.body.scrollTop = Math.round(top);
|
||||
} else {
|
||||
document.documentElement.scrollLeft = Math.round(left);
|
||||
document.documentElement.scrollTop = Math.round(top);
|
||||
}
|
||||
|
||||
this.redraw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user