Live data from Hacker News

Show HN: Picknplace.js, an alternative to drag-and-drop

jgthms.com

31–40 of 158 posts

Re: Show HN: Picknplace.js, an alternative to drag-and-drop

#31
post #25

i was expecting when i click pick, that a "place" button would appear on each other item, or i could click on a row OR possibly highlighting the spots between rows either with a line, or "place" i think that's a much more intuitive & reliable ui, and would be an improvement on drag n drop. or a supplement to it

That's a great idea actually. I'd have to find a way to highlight the possible landing spots.

(i do like innovating on this btw)

here's a basic CSS starting point

    :has(.pnp-picked) .pnp-item:not(.pnp-picked):not(:last-child)::after {
        content: "[place]";
    }

Re: Show HN: Picknplace.js, an alternative to drag-and-drop

#35
I could see this being really useful for editing lists that are longer than the page. The example that immediately comes to mind is reordering a playlist on YouTube Music, which currently requires dragging to near the screen edge and trying to convince the list to scroll while you still hold on to the item you're trying to move.

Re: Show HN: Picknplace.js, an alternative to drag-and-drop

#37
post #21

Does not work with an indexed scrollwheel -- one click of the scroll wheel moves like 4 lines in your list, which seems to break the assumptions of your code. I get very strange behaviors, e.g. "pick" Five, scroll up and down, see swapping of Ten and Six during scroll. Then "place" results in Five being in the same place as before but Nine and Ten are swapped. Similar when using arrow keys.

These feel like fixable things.

Re: Show HN: Picknplace.js, an alternative to drag-and-drop

#38
Interesting concept. Not sure if I like it more than drag and drop though, but I do love explorations like this. Reminds me of the old days when Flash devs would build some truly crazy stuff.

Potential bug: The first time I tried it on my iPad, it didn’t place the item, but it did on subsequent uses.

Re: Show HN: Picknplace.js, an alternative to drag-and-drop

#39

That's neat. Not sure if I would deploy it, as it will be hard to explain/teach people how to use it (as I see in other comments already), but I do see the value in it. It solves the "drag and drop beyond what fits the screen" much better than you can with drag and drop, the awkward auto-scroll-on-nearing-the-edge-thing. I would say, if you need to reorder many items, it gets a bit disorienting, the whole list moves…

I wonder if a stack metaphor would work for that. So that N items are no bigger than 2 items.

Re: Show HN: Picknplace.js, an alternative to drag-and-drop

#40

Ideas for usability: -Add a background behind the buttons when you have picked. -When having picked, display above the buttons a helper text like "Now scroll to change position".

CSS outline would be a good visual indicator here as it won’t modify the page layout.
Post reply on HN