Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/pages/image_viewer/image_viewer_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,10 @@ class _ZoomableImageState extends State<_ZoomableImage> {
},
// When interaction ends, check if we are still zoomed in
onInteractionEnd: (details) {
widget.controller.onInteractionEnds(details);

// Identity matrix means scale is 1.0 and offset is 0,0
final isZoomed = _transformController.value.row0[0] != 1.0;
if (!isZoomed) {
widget.controller.onInteractionEnds(details);
widget.onZoomStatusChanged(false);
}
},
Expand Down