mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Non-touch: fix crash when expanding ToC (#8892)
This commit is contained in:
@@ -815,7 +815,7 @@ function ReaderToc:onShowToc()
|
||||
function toc_menu:onMenuHold(item)
|
||||
if not Device:isTouchDevice() and (item.state and item.state.callback) then
|
||||
-- non touch to expand toc
|
||||
item.state.callback()
|
||||
item.state.callback(item.index)
|
||||
else
|
||||
-- Match the items' width
|
||||
local infomessage = InfoMessage:new{
|
||||
|
||||
Reference in New Issue
Block a user