key positions take scroll into account