Fix dragging and Pi