ReaderHighlight: fix ending fragment check (#9769)
This commit is contained in:
1 parent
c5700b718d
commit
4f3000e882
1 file changed
+1
-1
@@ -1473,7 +1473,7 @@ function ReaderHighlight:onHoldRelease()
|
||||
|
||||
if self.select_mode then -- extended highlighting, ending fragment
|
||||
if self.selected_text then
|
||||
if self.ui.document.info.has_pages and self.ui.paging.current_page ~= self.highlight_page then
|
||||
if self.ui.paging and self.hold_pos.page ~= self.highlight_page then
|
||||
self.ui.paging:_gotoPage(self.highlight_page)
|
||||
UIManager:show(Notification:new{
|
||||
text = _("Fragments must be within one page"),
|
||||
|
||||
Reference in new issue
Block a user