Scroll sensitivity configurable, but inverted

This commit is contained in:
ailurux
2024-02-12 17:44:55 +11:00
parent 527374c72e
commit 0426d245c8
9 changed files with 77 additions and 4 deletions
+14
View File
@@ -256,6 +256,20 @@ function settings.input()
controls.scheme:set(scheme)
end)
menu.content:Label {
text = "Scroll Sensitivity",
}:add_style(theme.settings_title)
local sensitivity = menu.content:Slider {
w = lvgl.PCT(100),
h = 5,
range = { min = 5, max = 45 },
value = controls.scroll_sensitivity:get(),
}
sensitivity:onevent(lvgl.EVENT.VALUE_CHANGED, function()
controls.scroll_sensitivity:set(sensitivity:value())
end)
return menu
end