Dragging improved

Dragging right mouse or two touches goes into dragmode.
some optimization