send horizontal scroll only when necessary