emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
5.26k stars 169 forks source link

fix: drawer failing to cancel move event #339

Open rortan134 opened 1 month ago

rortan134 commented 1 month ago

Closes #279

vercel[bot] commented 1 month ago

@rortan134 is attempting to deploy a commit to the emil Team on Vercel.

A member of the Team first needs to authorize it.

joaom00 commented 1 month ago

I think the events are not being forwarded yet. I'm talking specifically about this line

 rest.onPointerUp?.(event);

We need to

rest.onPointerOut?.(event)
rest.onContextMenu?.(event)

depending on the prop