Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
How to set Drag & Drop? - Q&A

How to set Drag & Drop?

0 like 0 dislike
Hi all!
Need your help.
Want to make a few blocks, freely moving in the container with dnd, but have some problems that I cannot solve:

1. You want the blocks could not go beyond the main container. I.e. reaching the edge, they stick to it and then not move.
2. The blocks were positioned initially where I put them or at least accepted value of the parent, for example, position: relative
It is important that the blocks were free to move throughout the area and not stand in a specific place.

asked by | 5 views

2 Answers

0 like 0 dislike
This should help: jsfiddle
answered by
0 like 0 dislike
answered by
Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers


13.3k users

24,788 questions
46,220 answers
13,321 users