Added support for horizontal scrolling, along with relevant test