Skip to content

Commit

Permalink
Mobile - Draggable - Add onTouchesCancelled to handle manually ending…
Browse files Browse the repository at this point in the history
… the drag & drop event in cases like sending the app to background or opening the notifications center on iOS (#40729)
  • Loading branch information
Gerardo Pacheco authored May 3, 2022
1 parent bc82fb7 commit 3929ae8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/draggable/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ const Draggable = ( { children, onDragEnd, onDragOver, onDragStart } ) => {
}
}
} )
.onTouchesCancelled( ( _event, state ) => {
state.end();
} )
.onEnd( () => {
currentFirstTouchId.value = null;
isPanActive.value = false;
Expand Down

0 comments on commit 3929ae8

Please sign in to comment.