committing the modified scroll listener