fix condition for layout invalidation

Default flow layout (PSTCollectionViewFlowLayout) won't invalidate its layout when it should: e.g., changing the width of the view the layout should be invalidated if the scroll direction is PSTCollectionViewScrollDirectionVertical, but not if it is PSTCollectionViewScrollDirectionHorizontal and vice versa.