mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 06:59:21 +01:00
Fix pointer cancel event not handled in viewer
This commit is contained in:
parent
a88c776d7c
commit
2c8b6a0240
1 changed files with 6 additions and 0 deletions
|
@ -106,6 +106,12 @@ class _ImageViewerState extends State<ImageViewer>
|
||||||
}
|
}
|
||||||
_prevFingerPosition = event.position;
|
_prevFingerPosition = event.position;
|
||||||
},
|
},
|
||||||
|
onPointerCancel: (event) {
|
||||||
|
--_finger;
|
||||||
|
if (_finger < 2) {
|
||||||
|
_setIsZooming(false);
|
||||||
|
}
|
||||||
|
},
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onDoubleTap: () {
|
onDoubleTap: () {
|
||||||
if (_isZoomed) {
|
if (_isZoomed) {
|
||||||
|
|
Loading…
Reference in a new issue