diff --git a/lib/ui/zoomable_image.dart b/lib/ui/zoomable_image.dart index 94cfbf0f1..ef22c973c 100644 --- a/lib/ui/zoomable_image.dart +++ b/lib/ui/zoomable_image.dart @@ -70,15 +70,18 @@ class _ZoomableImageState extends State Widget content; if (_imageProvider != null) { - content = PhotoView( - imageProvider: _imageProvider, - scaleStateChangedCallback: _scaleStateChangedCallback, - minScale: PhotoViewComputedScale.contained, - gaplessPlayback: true, - heroAttributes: PhotoViewHeroAttributes( - tag: widget.tagPrefix + _photo.tag(), + content = PhotoViewGestureDetectorScope( + axis: Axis.vertical, + child: PhotoView( + imageProvider: _imageProvider, + scaleStateChangedCallback: _scaleStateChangedCallback, + minScale: PhotoViewComputedScale.contained, + gaplessPlayback: true, + heroAttributes: PhotoViewHeroAttributes( + tag: widget.tagPrefix + _photo.tag(), + ), + backgroundDecoration: widget.backgroundDecoration, ), - backgroundDecoration: widget.backgroundDecoration, ); } else { content = loadWidget;