ReaderHighlight: manage overlapped highlights (#10492)

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

No files matched your search

+2 -2
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()