[what] make sure the switch scroll not scrolled out of boundary