added ability to toggle whether dragging is enabled.