Skip to content

Commit

Permalink
Update readerhighlight.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 authored Oct 6, 2024
1 parent afdff4c commit f02e740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/apps/reader/modules/readerhighlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ function ReaderHighlight:_getDialogAnchor(dialog, item)
end
if pos0 == nil or pos1 == nil then return end -- fallback to "center"
if pos0.y > pos1.y then -- try to show the dialog below the highlight
pos0, pos1 = pos1, pos0
pos1 = pos0
end
local text_box = self.ui.document:getWordFromPosition(pos1, true)
if text_box then
Expand Down

0 comments on commit f02e740

Please sign in to comment.