packages.flutter
packages.flutter copied to clipboard
PDFX on Web jank when scrolling
Describe the bug On web, when I scroll a pdf within a PdfViewPinch using either the scroll-wheel or by dragging up/down the pdf flickers and jumps and sometimes gaps appear in the pdf image. After scrolling ends the pdf appears correctly, the problem only occurs while scrolling. I've tested with a simple pdf containing an image and some text.
To Reproduce Create a new flutter project and replace main.dart with the contents of the following attached file: main.dart.txt And replace pubspec.yaml with the contents of the following attached file: pubspec.yaml.txt And add a pdf with an image called "test.pdf" to your assets folder. And replace your index.html file with the contents of the following attached file: index.html.txt Then run/debug in chrome and use scroll-wheel or mouse-drag to scroll the image. You should see jank/flickering/lagging behaviour particularly when you scroll quickly.
having the same issue
here a small video of the issue. tested on high-end android device with chrome browse
https://user-images.githubusercontent.com/100768486/179200071-12339bb1-0747-4b2a-b540-917a1295c231.mp4
for anyone who has the same issue. there is another package where this issue is already solved https://github.com/espresso3389/flutter_pdf_render/issues/84
I'm still experiencing this issue. Any chance it could be fixed in this package?
Hello would like to up this as I'm experiencing the issue