Make the window scrolling hide the selection box