diff options
Diffstat (limited to 'assets/client.js')
-rw-r--r-- | assets/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/client.js b/assets/client.js index b23222c..a6a2a73 100644 --- a/assets/client.js +++ b/assets/client.js @@ -163,8 +163,8 @@ function movSelWin(win, x, y) { } else { win.style.display = ""; } - win.style.left = (anch.x + (tpos.x * tile_w)) + 'px'; - win.style.top = (anch.y + ((tpos.y + 0.35) * tile_h)) + 'px'; + win.style.left = (window.scrollX + anch.x + (tpos.x * tile_w)) + 'px'; + win.style.top = (window.scrollY + anch.y + ((tpos.y + 0.35) * tile_h)) + 'px'; win.style.width = tile_w + 'px'; win.style.height = tile_h + 'px'; } |