Fix several issues with dragging in the editor
Merge pull request #786 from Soul1355/Test

Fix several issues with dragging in the editor