summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-21 18:33:03 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-21 18:33:03 +0200
commit2fb32d05f97b6787c5a01f209cc1791395e76bfe (patch)
tree4ce034370ba5d5054f8905102fb6dba0038b7d9d /play.js
parent93a3f006649ff7edcaa0da40a35675983cef333b (diff)
downloadwilderness-war-2fb32d05f97b6787c5a01f209cc1791395e76bfe.tar.gz
scroll_with_middle_mouse and scroll_into_view
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/play.js b/play.js
index 882fece..4a6fe70 100644
--- a/play.js
+++ b/play.js
@@ -296,7 +296,7 @@ function on_blur_space_tip(s) {
}
function on_click_space_tip(s) {
- ui.space_list[s].scrollIntoView({ block:"center", inline:"center", behavior:"smooth" })
+ scroll_into_view(ui.space_list[s])
}
function on_log_line(text, cn) {
@@ -1575,4 +1575,3 @@ function on_update() {
drag_element_with_mouse("#removed", "#removed_header")
drag_element_with_mouse("#discard", "#discard_header")
-scroll_with_middle_mouse("main")