Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
getname1997 committed Mar 8, 2024
2 parents be6305e + 9f10ad0 commit 2dd7378
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/useDraggable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export function useDraggable(
}

const start = (e: PointerEvent) => {
if (e.button !== 0)
return
if (toValue(options.disabled) || !filterEvent(e))
return
if (toValue(exact) && e.target !== toValue(target))
Expand Down

0 comments on commit 2dd7378

Please sign in to comment.