fix an incorrect scope rule and enable scrolling globally as scrolling to top or bottom