packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

PDFX on Web jank when scrolling

Open iBob101 opened this issue 2 years ago • 6 comments

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.

iBob101 avatar Jun 23 '22 20:06 iBob101

having the same issue

razfazz avatar Jul 09 '22 22:07 razfazz

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 avatar Jul 15 '22 09:07 zogol

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

zogol avatar Aug 01 '22 16:08 zogol

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

mreinfurt avatar Mar 24 '23 07:03 mreinfurt

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

sydneyagcaoili avatar Jul 29 '23 20:07 sydneyagcaoili