#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 left = this.l / coefX;
|
||||||
var top = this.t / coefY;
|
var top = this.t / coefY;
|
||||||
|
|
||||||
if (OZ.webkit) {
|
document.documentElement.scrollLeft = Math.round(left);
|
||||||
document.body.scrollLeft = Math.round(left);
|
document.documentElement.scrollTop = Math.round(top);
|
||||||
document.body.scrollTop = Math.round(top);
|
|
||||||
} else {
|
|
||||||
document.documentElement.scrollLeft = Math.round(left);
|
|
||||||
document.documentElement.scrollTop = Math.round(top);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.redraw();
|
this.redraw();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user