Add support for lateral tab swiping and restoring scroll position