#310 scrolling the documentElement

This commit is contained in:
Ondřej Žára
2022-04-27 13:55:08 +02:00
parent bbea4e9028
commit 4c2b6f5d53
+2 -7
View File
@@ -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();
} }