diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-21 18:33:03 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-21 18:33:03 +0200 |
commit | 2fb32d05f97b6787c5a01f209cc1791395e76bfe (patch) | |
tree | 4ce034370ba5d5054f8905102fb6dba0038b7d9d /play.js | |
parent | 93a3f006649ff7edcaa0da40a35675983cef333b (diff) | |
download | wilderness-war-2fb32d05f97b6787c5a01f209cc1791395e76bfe.tar.gz |
scroll_with_middle_mouse and scroll_into_view
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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") |