fix scroll_end (store prev_top)