Fix autocollapse on scrolling

Fix autocollapse on scrolling