From 904f3eb382228404370f5985937208a54b0f58a5 Mon Sep 17 00:00:00 2001 From: Gerardo Date: Fri, 29 Apr 2022 13:47:40 +0200 Subject: [PATCH] Mobile - Draggable - Add onTouchesCancelled to handle manually ending the drag & drop event in cases like sending the app to background or opening the notifications center on iOS --- packages/components/src/draggable/index.native.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/components/src/draggable/index.native.js b/packages/components/src/draggable/index.native.js index 9add347e58581..57f2849d43029 100644 --- a/packages/components/src/draggable/index.native.js +++ b/packages/components/src/draggable/index.native.js @@ -121,6 +121,9 @@ const Draggable = ( { children, onDragEnd, onDragOver, onDragStart } ) => { } } } ) + .onTouchesCancelled( ( _event, state ) => { + state.end(); + } ) .onEnd( () => { currentFirstTouchId.value = null; isPanActive.value = false;