Show HN: Picknplace.js, an alternative to drag-and-drop (opens in a new tab)jgthms.com
455 pointsI find that the drag and drop experience can quickly become a nightmare, especially on mobile.
To tap, hold, drag, and scroll, all at the same time, is both difficult to achieve, and prone to errors.
I've always had in mind this 2-step approach, where picking an element and placing it were two separate steps.
So I implemented this basic version to showcase my idea.
While it might take more time than a regular drag and drop, the benefit is for people who struggle with holding down the mouse button. With picknplace.js, you only need two clicks and some scrolling.
This solution is meant as an experiment, so I'm open to discussion.

Comments (152) 101 threads
Show all comments
Showing thread 37 of 101
FYI: I noticed a bug on iPhone SE running 26.2 with tabs set to "bottom" in settings.
Scroll so that 10 is near bottom of screen. Pick 10, then scroll up a bit. The bottom 10 element then gets lost and you can't see it.
I suspect because Safari expands the size of its controls at the bottom. The cancel + place buttons stay sticky to the bottom of the screen correctly, so maybe you can do the same as what you do for them???