Fixed issue when content was dragged too far on left and right.