Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
When I'm using SfPdfViewer with a one-page pdf loaded in single page layout mode, initialized like this:
SfPdfViewer.asset(
"assets/music_sheets/CB1.pdf",
maxZoomLevel: 5,
enableHyperlinkNavigation: false,
enableTextSelection: false,
interactionMode: PdfInteractionMode.pan,
pageLayoutMode: PdfPageLayoutMode.single,
)
and when I keep the phone horizontally oriented, if I zoom in in the center and them zoom out, while zooming out the page goes to the far right of the screen and then again to the center. I believe the zoom out should be centered around my pinch gesture. Then after gesture release the page is instantly centered as it should be.
However, because of the placement correction on gesture release, sometimes the correction is wrong (this happens more in the Virtual Device than in the real device), so both when zooming in and out it sometimes looks ok while performing the gesture then the page instantly becomes out of screen. If I then try to move it a bit it corrects its placement in the center of the screen.
While playing more on the Virtual device with this, at some point the program crashed.
These seem like multiple problems, but I believe they might have the same solution of syncing the placement while performing the gesture with the gesture release placement, i.e. if the placement would be correct while performing the zoom gesture, it wouldn't need any correction at the end so it would fix both problems mentioned before (the move toward far right while zooming out and the move out of place sometimes at the end of the gesture because of a wrong location fixing).