Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function onTouchstart( e:TouchEvent ) {
// only allow one drag operation at a time
if( activeDragOperation ) {
console.log( "dnd-poly: drag operation already active" );
// try avoid infinite loop on iOS if something happened with draggable dom object (disappeared or changed during drag)
activeDragOperation._cleanup();
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/internal/drag-operation-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class DragOperationController {
return true;
}

private _cleanup() {
public _cleanup() {

console.log( "dnd-poly: cleanup" );

Expand Down