Fixed moving and dragging.