store the direction of the selection resizing