Amit Patel personal blog

Draggable objects

Many of my interactive pages have a draggable object . I want the reader to move the object around, and I want the diagram to respond in some way. Here I’ll document the code I use to make this work with both mouse and touch input, using browser features that are widely supported since 2020. Here’s a common case I…
Points
1,059
HN comments
141
Submissions
1
Cited by
0 commenters

Web & FrontendDesign & UX2023

On Hacker News

SubmittedTitle on HNPointsComments
Sep 29, 2023Draggable objects by stefankuehnel1,059141

More from Amit Patel

All 8 posts →

Related posts from the same era