Fix for horizontal scroll on iOS

The same check needs to be in place for horizontal scroll as vertical scrolling.