Please sign in to comment.
[paging-scroll-view] Fix an exception thrown when NIPagingScrollView …
…rotates with a zero frame
💥When -pageScrollableDimension returns 0, _percentScrolledIntoFirstVisiblePage ends up as NaN because of divide-by-zero operations in willRotateToInterfaceOrientation:duration:. This patch guards against these divide-by-zero errors. Also add tests to catch exceptions thrown when rotating NIPagingScrollView with a zero frame.
- Loading branch information...
Showing with 14 additions and 2 deletions.