← You're Writing Mouse and Touch Handlers. Pointer Events Does Both.
Playground

Pointer Events — drag without losing the pointer

preview

Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.