Add listener when scroll direction changed