mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
expand/collapse for the left one third region should be more resonable
This commit is contained in:
@@ -307,7 +307,7 @@ function ReaderToc:onShowToc()
|
||||
function toc_menu:onMenuSelect(item, pos)
|
||||
-- if toc item has expand/collapse state and tap select on the left side
|
||||
-- the state switch action is triggered, otherwise goto the linked page
|
||||
if item.state and pos.x < 0.5 then
|
||||
if item.state and pos.x < 0.3 then
|
||||
item.state.callback()
|
||||
else
|
||||
toc_menu:close_callback()
|
||||
|
||||
Reference in New Issue
Block a user