Simplfied: Vertical drag function
This commit is contained in:
parent
1307358934
commit
a70a5f95da
1 changed files with 1 additions and 3 deletions
|
@ -112,11 +112,9 @@ class _ZoomableImageState extends State<ZoomableImage>
|
|||
};
|
||||
|
||||
verticalDragCallback(d) {
|
||||
if (_initialScale != null &&
|
||||
if (_initialScale == null ||
|
||||
_photoViewController.scale! <= _initialScale!) {
|
||||
dragFunction(d);
|
||||
} else if (_initialScale == null) {
|
||||
dragFunction(d);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue