Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift or Ctrl Key cause the drawn line is selected with additional line and can't be removed #17829

Open
advcha opened this issue Mar 23, 2024 · 1 comment · May be fixed by #18496
Open

Shift or Ctrl Key cause the drawn line is selected with additional line and can't be removed #17829

advcha opened this issue Mar 23, 2024 · 1 comment · May be fixed by #18496
Labels

Comments

@advcha
Copy link

advcha commented Mar 23, 2024

Attach (recommended) or Link to PDF file here: The live demo: https://mozilla.github.io/pdf.js/web/viewer.html

Configuration:

  • Web browser and its version: FireFox and Chrome tested
  • Operating system and its version:
  • PDF.js version: The latest one (4.0.379)
  • Is a browser extension: No

Steps to reproduce the problem:

  1. Open the live demo https://mozilla.github.io/pdf.js/web/viewer.html
  2. click the Draw toolbar
  3. Draw a line on the viewer (any line on any place)
  4. Okay. here is the problem. I want to create another line but I press and hold Shift or Ctrl key on my keyboard then tried to draw the new line with my mouse. Suddenly the drawn line is selected with additional straight line in it. Also I can't remove them.

What is the expected behavior?
I expect the pressed Shift/Ctrl key can make a straight line instead of the free/bezier line (if it's possible to create a straight line with the key combination).

What went wrong?
The drawn line is selected with additional straight line in it. Also I can't remove them. pls check this screen
-compressed-tracemonkey-pldi-09-pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants