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 | |
parent | 93a3f006649ff7edcaa0da40a35675983cef333b (diff) | |
download | wilderness-war-2fb32d05f97b6787c5a01f209cc1791395e76bfe.tar.gz |
scroll_with_middle_mouse and scroll_into_view
-rw-r--r-- | play.css | 1 | ||||
-rw-r--r-- | play.js | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -148,7 +148,6 @@ aside { min-width: 220px; } width: 300px; border: 1px solid black; box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.5); - user-select: none; } .card_list_header { cursor: move; @@ -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") |