Update the `scrollOffset` only depending on the current orientation of the list
Fixing wrong scrollOffset variable use