Prevent selection goes far on x-axis