Handle possible null value.
Enable scrolling in multiple directions.