diff options
author | matthew <matthew> | 2008-03-12 17:26:21 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-03-12 17:26:21 +0000 |
commit | 312f298e735eab252f249e2326605ec84a5dad9d (patch) | |
tree | f691b91dd253bb92575ef58c01ee7f3c6bb47066 /web/js.js | |
parent | 50203e849ee0b3d51ada1bf685841d679f1d6b5e (diff) |
Appear to have messed something up wrt dragging.
Diffstat (limited to 'web/js.js')
-rw-r--r-- | web/js.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |