disable double click functionality in legend