Skip to content

Commit

Permalink
internal: fixes issue where touchmove on root caused pointercancel
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamilenkovic committed Dec 14, 2024
1 parent 754c0b0 commit b517410
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ export function dragAndDrop<T>({
keydown: handleRootKeydown,
drop: handleRootDrop,
pointermove: handleRootPointermove,
touchmove: (e: TouchEvent) => {
if (isDragState(state) && e.cancelable) pd(e);
},
});

const liveRegion = document.createElement("div");
Expand Down
2 changes: 1 addition & 1 deletion tests/.nuxt/nuxt.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Generated by nuxi
/// <reference types="@nuxtjs/tailwindcss" />
/// <reference types="@nuxt/telemetry" />
/// <reference types="@nuxt/devtools" />
/// <reference types="@nuxt/telemetry" />
/// <reference types="nuxt" />
/// <reference path="types/app-defaults.d.ts" />
/// <reference path="types/plugins.d.ts" />
Expand Down

0 comments on commit b517410

Please sign in to comment.