forked from yaso_meth/mih-project
fix negative size when zooming out
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user