ScerIO / packages.flutter

👨‍💻 Plugins and packages for Flutter framework
https://pub.dev/publishers/serge.software/packages
MIT License
437 stars 420 forks source link

PDFX on Web jank when scrolling #314

Open iBob101 opened 2 years ago

iBob101 commented 2 years ago

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.

razfazz commented 1 year ago

having the same issue

zogol commented 1 year ago

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

zogol commented 1 year ago

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

mreinfurt commented 1 year ago

I'm still experiencing this issue. Any chance it could be fixed in this package?

sydneyagcaoili commented 11 months ago

Hello would like to up this as I'm experiencing the issue

Vesel4akRepositories commented 2 weeks ago

Any activity?