Correctly determine if the viewport has horizontal scroll