fix drag issue when changing length, turn off panelswitch