viewer: fixed panning when zoomed in
This commit is contained in:
parent
c88b839960
commit
d0af2896ac
1 changed files with 8 additions and 5 deletions
|
@ -86,11 +86,14 @@ class SingleImagePageState extends State<SingleImagePage> with AutomaticKeepAliv
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
super.build(context);
|
super.build(context);
|
||||||
|
|
||||||
return ImageView(
|
return PhotoViewGestureDetectorScope(
|
||||||
|
axis: [Axis.vertical],
|
||||||
|
child: ImageView(
|
||||||
entry: widget.entry,
|
entry: widget.entry,
|
||||||
onScaleChanged: widget.onScaleChanged,
|
onScaleChanged: widget.onScaleChanged,
|
||||||
onTap: widget.onTap,
|
onTap: widget.onTap,
|
||||||
videoControllers: widget.videoControllers,
|
videoControllers: widget.videoControllers,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue