Add mouse loop when dragging