scroll event optimize