packery
packery copied to clipboard
Add back drag / fit packing behavior from v1
Packery v2 changed packing behavior. I'm interested to hear if anyone would like an option to use Packery v1 drag / fit behavior in Packery v2.
- Packery v1 items will all be packed around dragged item. This is useful if you want the tightest arrangement of items.
- Packery v2 items maintain horizontal position, only shifting up or down to make space for dragged item. This is useful if you want less movement while dragging items. It's easier to keep track of how items will move.
Add a :+1: reaction if you'd like to see Packery v1 drag packing behavior be added back to Packery v2.
Do not add a "+1" comment — I will delete them. Use reactions instead. Subscribe to this issue using the button in the sidebar.
:+1: I need, behavior like flow layout panel in desktop development.
Can't we have both behaviors? If there is a way to toggle between them i would like to know. Thanks!
I'm pretty sure that is the intention.
As desandro said:
I'm interested to hear if anyone would like an _option_ to use Packery v1 drag behavior in Packery v2.
Hope that this will be implemented and not shelved.
In my case, layout
method doesn't solve an issue(
@desandro I'm interested in this please!
What I'm really interested in is having v1-like predictable reordering with ability for variable-height elements, all same width. Is that possible?
:+1: Definitely would like to see this option back in please. Our items are all the same size so it makes sense for our users to be able to swap horizontally a <-> b and vertically a <-> f
I agree with @metaman. When dragging an item left to right then my brain would expect the right most to slide into its place, and also when dragging down then I would expect the underneath to slide into place.
Is there an ETA for this? seems like a very important issue. I am very eager to see this done :)
Adding predictive drag by moving/placing items vertically if user drags up or down and vice versa, if user drags left or right to move/place the images horizontally may be a good feature!
We really this function~ Anyone have a quick fix to it rather than waiting for the author?
Is this still in the works does anyone know?
What is the status of this feature?
Any news on this?
This feature is still being considered. Adding another layout algorithm into Packery makes it more complex. So I'd like to be careful.
I appreciate your interest in Packery. But c'mon. No news means no news.
+1
+1
That would be really good. I use packery for arranging photo grids and the v2 behaviour is not intuitive (and produces """wrong""" results) for my current use case.
It would be nice to have the choice on the drag behavior !
This is like pest and cholera. v1 has the good drag behaviour, but dragging events are buggy and/or broken (see #1 for example and others I don't want to look up). v2 has working drag events, but the drag behaviour is like "wtf". No need to be polite, because this project looks dead to me and I don't expect any progress on this issue anyway.
Have a nice day!
@infabo Even if you consider the project "dead" there's no need to be aggressive. That only makes you another internet jerk. If you really think the project's dead you can fork it and bring it "back to life".
Don't cry, commit.
@infabo Packery is not dead. I'm considering adding this feature back as its gained a lot of interest. Adding features makes projects more complex. So I'm always careful with what features get added. I appreciate your concern and energy with the project. I'm sorry if this issue has taken too long. Alas, I am but one person maintaining all of Metafizzy's projects.
With all due respect, the old behavior is illogical to me. Scenario 1: If you were to move A to column 3 as you outlined above - C moves to the left one column and it pushes the other ones out of the way with F ending up in column 3!??! WHAT? In essence you moved both A and F from column 1 to 3 with one move. Scenario 2 is more predictable that it just pushes the existing cells down. Scenario 3 would be the newer newer version - which would instead have B& C slide to the LEFT, E pushes down to make room for C above it and F remains where it is the same with D&G (staying in their existing spots). Basically all you would've done is taken A and inserted in column 3 while pushing columns 2&3 to the left and the top row would end up (from left to right) BCAD.. Or if you wish you can push C to the RIGHT which knocks off D all the way to the first cell on the left. So the order of the top row would be (from left to right) DBAC with the bottom row remaining as is but shifted accordingly up/down to allow for the top cells to fit. So my vote would be Forget v1 & v2 and do v3 instead :)
Use https://github.com/haltu/muuri, simple to use and drag behaviour works like a charm.
It seems we can no longer place bigger containers under smaller ones. We can place smaller ones under the bigger ones or the same sized ones below one another. Please check the attached screenshot. I tried it from: https://packery.metafizzy.co/draggable.html
It would be very useful if we can have the ability to place bigger containers under the small ones.
Thanks for your efforts to keep maintained isotope and packery. I would like to know if you still consider implementing this feature, and if yes, WHEN? Just to know if I should switch to another library or not...
Thanks for the heads up. Feel free to switch I will switch along as well.
Sent from Mail for Windows 10
From: Gerald Kogler Sent: Monday, May 27, 2019 1:38 AM To: metafizzy/packery Cc: LEEVE; Comment Subject: Re: [metafizzy/packery] Add back drag / fit packing behavior from v1(#353)
Thanks for your efforts to keep maintained isotope and packery. I would like to know if you still consider implementing this feature, and if yes, WHEN? Just to know if I should switch to another library or not... — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.