2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/frontend/ui/elements/page_turns.lua
gbyl 617ed2c078
Gestures: Allow disabling tap and/or swipes for page turns (#7572)
Co-authored-by: gbyl <gbyl@users.noreply.github.com>
Co-authored-by: NiLuJe <ninuje@gmail.com>
2021-04-22 18:35:08 +02:00

26 lines
714 B
Lua

local _ = require("gettext")
return {
text = _("Page turns"),
sub_item_table = {
{
text = _("Disable taps"),
checked_func = function()
return G_reader_settings:isTrue("page_turns_disable_tap")
end,
callback = function()
G_reader_settings:toggle("page_turns_disable_tap")
end
},
{
text = _("Disable swipes"),
checked_func = function()
return G_reader_settings:isTrue("page_turns_disable_swipe")
end,
callback = function()
G_reader_settings:toggle("page_turns_disable_swipe")
end
},
}
}