'Prevent events from overlapping while dragging

I have an Issue, if you have already an event and drag another over this, the events will be drawn on top of each other. After drop the Event it will appear a line under the first. Now you can switch it in this lane. But initially it looks not good.

Excample



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source