diff options
author | ondrej.zara <none@none> | 2009-01-26 11:57:01 +0000 |
---|---|---|
committer | ondrej.zara <none@none> | 2009-01-26 11:57:01 +0000 |
commit | a020261cef889e96b00e865d1794a249d07e428c (patch) | |
tree | 39669b9b4e46dcc81c08e2a3d2bb47a3a2a6c6fa | |
parent | 128d598d5d05f0b7682d7261f6d71b774ddc0893 (diff) | |
download | wwwsqldesigner-a020261cef889e96b00e865d1794a249d07e428c.zip wwwsqldesigner-a020261cef889e96b00e865d1794a249d07e428c.tar.gz wwwsqldesigner-a020261cef889e96b00e865d1794a249d07e428c.tar.bz2 |
safari fixes
--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4032
-rw-r--r-- | js/wwwsqldesigner.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 94cbb60..f82c5ec 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -1022,8 +1022,14 @@ SQL.Map.prototype.move = function(e) { /* mousemove */ var coefY = this.height / this.owner.height; var left = this.l / coefX; var top = this.t / coefY; - document.documentElement.scrollLeft = Math.round(left); - document.documentElement.scrollTop = Math.round(top); + + 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(); } @@ -1962,7 +1968,7 @@ SQL.Designer.prototype.init = function() { this.requestLanguage(); this.requestDB(); - this.vector = this.getOption("vector") && (OZ.gecko || OZ.opera || OZ.safari || OZ.ie); + this.vector = this.getOption("vector") && (OZ.gecko || OZ.opera || OZ.webkit || OZ.ie); if (this.vector) { this.vector = "svg"; if (OZ.ie) { this.vector = "vml"; } |