Fixed rect-select mode to handle all four selection directions.