events: fix scroll not going to bottom sometimes when it should