Throw error on all non supported scrollDirection values (instead of just
for horizontal).