-
An excellent and much needed project, thank you. I have a grid of draggable items, with https://github.com/anseki/plain-draggable handling dragging, snapping and constraining to a container. In the
Styling is applied:
Vanilla .JS code imports from the CDN as directed:
and in the handler for the HTML window loading. a new SelectionArea is created:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So, with a tiny modification the Here is the majik:
|
Beta Was this translation helpful? Give feedback.
Hey! You have to call
resolveSelectables
after adding new elements (https://github.com/Simonwep/selection/tree/master/packages/vanilla#functions) :)