Improve gesture

This commit is contained in:
2025-02-13 09:43:36 +08:00
parent dd7e2d6744
commit 9b1bafcbe1

View File

@@ -512,6 +512,14 @@ class _ContinuousModeState extends State<_ContinuousMode>
}); });
} }
}, },
onPointerCancel: (event) {
fingers--;
if (fingers <= 1 && disableScroll) {
setState(() {
disableScroll = false;
});
}
},
onPointerPanZoomUpdate: (event) { onPointerPanZoomUpdate: (event) {
if (event.scale == 1.0) { if (event.scale == 1.0) {
smoothTo(0 - event.panDelta.dy); smoothTo(0 - event.panDelta.dy);