fix mouse interaction when transition from 3 to 2 dimensional plot