disable dragging when drawing