This commit is contained in:
Kacper Kostka
2023-02-23 17:10:51 +01:00
parent 68e5f9525e
commit 99121a0a03
6 changed files with 27 additions and 30 deletions

View File

@@ -201,8 +201,8 @@ local function formspec(tabview, name, tabdata)
if core.settings:get("touchscreen_threshold") ~= nil then
tab_string = tab_string ..
"label[4.25,3.5;" .. fgettext("Touch threshold (px):") .. "]" ..
"dropdown[4.25,3.95;3.5;dd_touchthreshold;0,10,20,30,40,50;" ..
((tonumber(core.settings:get("touchscreen_threshold")) / 10) + 1) ..
"dropdown[4.25,3.95;3.5;dd_touchthreshold;0,5,10,15,20,25,30,35,40,45,50;" ..
((tonumber(core.settings:get("touchscreen_threshold")) / 5) + 1) ..
"]"
else
tab_string = tab_string ..