diff options
author | stale <redkugelblitzin@gmail.com> | 2022-05-29 20:45:03 -0300 |
---|---|---|
committer | stale <redkugelblitzin@gmail.com> | 2022-05-29 20:45:03 -0300 |
commit | bcd5764aa03e128e06c355272b7b81eac8d4501d (patch) | |
tree | 44e1076c24680325a02317c29d4838c547a6c49d /assets/client.js | |
parent | 8e8fb7c45e8088843b71cb55fede723b2f9c7ff2 (diff) |
improved pubs listing, many minor fixes
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'; } |