summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorembeddedt <42941056+embeddedt@users.noreply.github.com>2021-06-28 12:39:09 -0400
committerGitHub <noreply@github.com>2021-06-28 18:39:09 +0200
commit883e4ea325886e5cee88b34c2d9e069f12697c96 (patch)
tree09e46bbda4a0c437bfd58b416a4c3e68940cefc1 /src/table
parent003b6a0c85157059d0339dbfa551db7ec3b40cd9 (diff)
downloadopenttd-883e4ea325886e5cee88b34c2d9e069f12697c96.tar.xz
Change: [Emscripten] set default scrolling mode to non-pointer-locking (#9191)
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings/settings.ini14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/table/settings/settings.ini b/src/table/settings/settings.ini
index a0a835364..5e352ff3c 100644
--- a/src/table/settings/settings.ini
+++ b/src/table/settings/settings.ini
@@ -2516,6 +2516,20 @@ strval = STR_CONFIG_SETTING_AUTOSCROLL_DISABLED
cat = SC_BASIC
[SDTC_VAR]
+ifdef = __EMSCRIPTEN__
+var = gui.scroll_mode
+type = SLE_UINT8
+flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
+def = 2
+min = 0
+max = 3
+str = STR_CONFIG_SETTING_SCROLLMODE
+strhelp = STR_CONFIG_SETTING_SCROLLMODE_HELPTEXT
+strval = STR_CONFIG_SETTING_SCROLLMODE_DEFAULT
+cat = SC_BASIC
+
+[SDTC_VAR]
+ifndef = __EMSCRIPTEN__
var = gui.scroll_mode
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN