readerpaging: fix page turn by key (#14324)

This commit is contained in:
hius07 authored and GitHub committed 2025-09-14 18:42:06 +03:00
1 parent af50d71113
commit e511d654ee
1 file changed
+2
@@ -563,6 +563,8 @@ function ReaderPaging:onGotoPercent(percent)
end
function ReaderPaging:onGotoViewRel(diff, no_page_turn)
-- When called via a key event, the second arg is a key object (table), not used here.
no_page_turn = no_page_turn == true and true or nil
-- ReaderSearch calls with no_page_turn = true.
-- In that case, don't turn page if it would happen, and return ret=nil.
local ret