detect drag
refactor the code in order to use the new drag events
hack to make drag work, needs research
Merge pull request #19 from tmpduarte/drag

Drag using the drag events