Scroll callback now uses offsets instead of positions.