Skip to content

Commit

Permalink
#403 fixed section focusing
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaylaFischler committed Aug 29, 2024
1 parent 75c77cc commit ee922a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pocket/ui/pages/guide_section.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ return function (data, base_page, title, items, scroll_height)
elseif item.type == DOC_TYPE.TEXT then
---@cast item pocket_doc_text
TextBox{parent=def_list,text=item.text}
local _ = Div{parent=def_list,height=1}
_end = Div{parent=def_list,height=1,can_focus=true}
elseif item.type == DOC_TYPE.LIST then
---@cast item pocket_doc_list

Expand All @@ -101,7 +101,7 @@ return function (data, base_page, title, items, scroll_height)
end
end

local _ = Div{parent=def_list,height=1}
_end = Div{parent=def_list,height=1,can_focus=true}
end

if i % 12 == 0 then util.nop() end
Expand Down

0 comments on commit ee922a3

Please sign in to comment.