This is probably very easy to do, but I always think too complicated.
I\'ve just set up a simple test with #draggable / #droppable with a fixed width/height + float:
I don't know exactly what people wish to see but I have made a fiddle about resetting objects to initial positions on a single click either vertical or horizontal.Fiddle https://jsfiddle.net/JunaidAli/wp1n796q/321/
Fiddle