Post

fun fact: if you're implementing drag and drop, `setPointerCapture` / `releasePointerCapture` will keep you dragging even when you try move things out of their CSS container.

And adding `touch-action: none` to the container's CSS will prevent the browser from scrolling the page on mobile while you drag your finger on your HTML element 🤓

0 reposts0 likes

No replies yet.