stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
487 stars 184 forks source link

Touch Responsiveness Issue with Draw Editor on Mobile Screens in ngx-extended-pdf-viewer #2655

Open AmmarBaig135 opened 4 hours ago

AmmarBaig135 commented 4 hours ago

Description: The draw editor in ngx-extended-pdf-viewer is not functioning as expected on mobile devices with touch screens. When attempting to draw on the PDF using the pen tool on a mobile device, the lines are irregular and unresponsive, making it impossible to create smooth or accurate drawings.

This issue is only observed on mobile screens when using touch input. On larger screens (PCs and laptops), the draw editor works perfectly fine with a mouse or stylus.

Steps to Reproduce:

  1. Implement the ngx-extended-pdf-viewer in an Angular project and enable the showDrawEditor feature.
  2. Open the application on a mobile device or emulate a mobile screen size in the browser.
  3. Select the pen tool and try to draw on the PDF using touch input.

Observed Behavior:

Expected Behavior:

stephanrauh commented 2 hours ago

Which version of ngx-extended-pdf-viewer are you using? Do you see the same issues in version 22.0.0-alpha.10?

I'm going to revert the modifications of the draw editor soon. After that, it'll be identical to the native viewer of Firefox again.

Background info: some time ago, I accepted a pull request for drawing tablets, and a short time later, I ran into a major merge conflict.