drag and drop for history and iframe

some bug fixes to including to the drag plugin which makes it possible
to switch direction without press mouse down again.