mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +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;
|
||||
},
|
||||
onPointerCancel: (event) {
|
||||
--_finger;
|
||||
if (_finger < 2) {
|
||||
_setIsZooming(false);
|
||||
}
|
||||
},
|
||||
child: GestureDetector(
|
||||
onDoubleTap: () {
|
||||
if (_isZoomed) {
|
||||
|
|
Loading…
Reference in a new issue