viewer: fixed panning when zoomed in

This commit is contained in:
Thibault Deckers 2020-09-05 10:36:01 +09:00
parent c88b839960
commit d0af2896ac

View file

@ -86,11 +86,14 @@ class SingleImagePageState extends State<SingleImagePage> with AutomaticKeepAliv
Widget build(BuildContext context) {
super.build(context);
return ImageView(
entry: widget.entry,
onScaleChanged: widget.onScaleChanged,
onTap: widget.onTap,
videoControllers: widget.videoControllers,
return PhotoViewGestureDetectorScope(
axis: [Axis.vertical],
child: ImageView(
entry: widget.entry,
onScaleChanged: widget.onScaleChanged,
onTap: widget.onTap,
videoControllers: widget.videoControllers,
),
);
}