You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Text selection becomes offset to the cursor, making it impossible to select the end of a line of text (happens on firefox, but not IE or chrome):
The enhanced textLayerMode (value 2) of the pdf viewer does not work on the subsequently selected pages (the text div expansion does not trigger). Text selection jumps to the top of the page when the cursor is in between lines of text. I noticed the on click text div transformations that occur with textLayerMode 2 don't occur on these subsequent pages, even though they do occur on the starting page's selection.
When calling getSelection().getRangeAt(0).getClientRects() - the only rect counted as selected on subsequent pages is the entire page's div rect - as visualized by this picture, where the selection rects of the selection's starting page appear properly, but only 1 giant selection rect appears for the next page:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
Issue 1 can be seen here: https://mozilla.github.io/pdf.js/web/viewer.html. Issue 2 and 3 require a differently set up viewer, which I can put together an online viewer for if desired.
The text was updated successfully, but these errors were encountered:
The 1 issue no longer exists with PR#17923
The 2 issue is also seems to be fixed with the PR above as we can't accidentally select the empty space between the lines
The 3 issue seems outdated
Problem occurs on all pdf files and viewer setups I've tested, including the demo: https://mozilla.github.io/pdf.js/web/viewer.html
Configuration:
Steps to reproduce the problem:
What went wrong? (add screenshot)
The enhanced textLayerMode (value 2) of the pdf viewer does not work on the subsequently selected pages (the text div expansion does not trigger). Text selection jumps to the top of the page when the cursor is in between lines of text. I noticed the on click text div transformations that occur with textLayerMode 2 don't occur on these subsequent pages, even though they do occur on the starting page's selection.
When calling getSelection().getRangeAt(0).getClientRects() - the only rect counted as selected on subsequent pages is the entire page's div rect - as visualized by this picture, where the selection rects of the selection's starting page appear properly, but only 1 giant selection rect appears for the next page:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
Issue 1 can be seen here: https://mozilla.github.io/pdf.js/web/viewer.html. Issue 2 and 3 require a differently set up viewer, which I can put together an online viewer for if desired.
The text was updated successfully, but these errors were encountered: