fix negative size when zooming out

This commit is contained in:
2024-08-27 12:05:28 +02:00
parent 4ed438a44b
commit fa42c26e8f

View File

@@ -206,9 +206,11 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
startZoomLevel = pdfViewerController.zoomLevel;
});
} else {
setState(() {
zoomOut = zoomOut + 100;
});
if (zoomOut < (width - 100)) {
setState(() {
zoomOut = zoomOut + 100;
});
}
}
},
icon: Icon(