Add a test for dragging events and de-ugly that code a bit