diff --git a/src/util/captureEvents.ts b/src/util/captureEvents.ts index 8d4e8a8aa..3f27a4062 100644 --- a/src/util/captureEvents.ts +++ b/src/util/captureEvents.ts @@ -121,6 +121,7 @@ export function captureEvents(element: HTMLElement, options: CaptureOptions) { hasMoved = false; hasSwiped = false; + initialSwipeAxis = undefined; } function onMove(e: MouseEvent | RealTouchEvent) {