Fix issue that was breaking the pull-down interaction

This commit is contained in:
vishnukvmd 2023-12-04 10:23:07 +05:30
parent 478c6f0238
commit 23d46e203b

View file

@ -105,21 +105,19 @@ class _ZoomableImageState extends State<ZoomableImage>
} else {
content = const EnteLoadingWidget();
}
final GestureDragUpdateCallback? verticalDragCallback = _isZooming
? null
: (d) => {
if (!_isZooming)
verticalDragCallback(d) => {
if (!_isZooming)
{
if (d.delta.dy > dragSensitivity)
{
if (d.delta.dy > dragSensitivity)
{
{Navigator.of(context).pop()},
}
else if (d.delta.dy < (dragSensitivity * -1))
{
showDetailsSheet(context, widget.photo),
},
{Navigator.of(context).pop()},
}
else if (d.delta.dy < (dragSensitivity * -1))
{
showDetailsSheet(context, widget.photo),
},
};
},
};
return GestureDetector(
onVerticalDragUpdate: verticalDragCallback,