When scroll to the parent bottom or top.