Skip to content

Commit

Permalink
AG-13737 Fix touch click events
Browse files Browse the repository at this point in the history
  • Loading branch information
olegat committed Jan 21, 2025
1 parent 1a8a2a7 commit 3d57411
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ function startTouchDrag(
}
};
const touchend = (endEvent: TouchEvent) => {
endEvent.preventDefault();
const touch = findInitialFinger(endEvent.changedTouches, endEvent.touches);
if (touch != null) {
target.removeEventListener('touchstart', touchend);
Expand Down Expand Up @@ -317,7 +316,6 @@ export class WidgetListenerInternal {
};
this.localTouchDragCallbacks = dragCallbacks;

initialEvent.preventDefault();
startTouchDrag(GlobalCallbacks, dragCallbacks, initialTouch, current.getElement());

const dragStartEvent = makeTouchDrag(current, 'drag-start', origin, initialEvent, initialTouch);
Expand Down

0 comments on commit 3d57411

Please sign in to comment.