aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2008-03-12 17:26:21 +0000
committermatthew <matthew>2008-03-12 17:26:21 +0000
commit312f298e735eab252f249e2326605ec84a5dad9d (patch)
treef691b91dd253bb92575ef58c01ee7f3c6bb47066 /web/js.js
parent50203e849ee0b3d51ada1bf685841d679f1d6b5e (diff)
Appear to have messed something up wrt dragging.
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js.js b/web/js.js
index c732dc52d..58ca485a0 100644
--- a/web/js.js
+++ b/web/js.js
@@ -140,7 +140,7 @@ function update_tiles(dx, dy, force) {
drag_y += dy;
var drag = document.getElementById('drag');
- drag.style.right = drag_x + 'px';
+ drag.style.left = drag_x + 'px';
drag.style.top = drag_y + 'px';
var horizontal = Math.floor(old_drag_x/tilewidth) - Math.floor(drag_x/tilewidth);
@@ -182,7 +182,7 @@ function urls_loaded(o) {
}
img = cloneNode();
img.style.top = ((ii-2)*tileheight) + 'px';
- img.style.right = ((3-jj)*tilewidth) + 'px';
+ img.style.left = ((jj-2)*tilewidth) + 'px';
img.name = [ 'tile_', xx, '.', yy ].join('')
img.id = id;
if (browser) {