ReaderHighlight: manage overlapped highlights (#10492)

This commit is contained in:
hius07
2023-05-28 08:05:48 +03:00
committed by GitHub
parent 177092243f
commit 57f4ff2c68
3 changed files with 85 additions and 33 deletions

View File

@@ -159,7 +159,7 @@ describe("Readerhighlight module", function()
Screen:shot("screenshots/reader_highlight_single_word_pdf.png")
end)
it("should highlight text", function()
highlight_text(readerui, Geom:new{ x = 260, y = 70 }, Geom:new{ x = 260, y = 150 })
highlight_text(readerui, Geom:new{ x = 260, y = 170 }, Geom:new{ x = 260, y = 250 })
Screen:shot("screenshots/reader_highlight_text_pdf.png")
end)
it("should response on tap gesture", function()
@@ -250,7 +250,7 @@ describe("Readerhighlight module", function()
Screen:shot("screenshots/reader_highlight_single_word_pdf_scroll.png")
end)
it("should highlight text", function()
highlight_text(readerui, Geom:new{ x = 260, y = 70 }, Geom:new{ x = 260, y = 150 })
highlight_text(readerui, Geom:new{ x = 260, y = 170 }, Geom:new{ x = 260, y = 250 })
Screen:shot("screenshots/reader_highlight_text_pdf_scroll.png")
end)
it("should response on tap gesture", function()