- changed status to resolved
GetSnapPosition Throws NullReferenceException When not Loopable with Single Item [Version 1, in development]
Issue #8
resolved
Problem Statement
If there is only a single item in the scroll snap, and it is not loopable, and you try to fling it GetSnapPosition will throw a NullReferenceException when it tries to calculate the snap position.
Steps to Reproduce
- Create a scroll snap with a single item.
- Attempt to fling the scroll snap.
- Observe how a NullReferenceException is thrown.
Proposed Solution
If there is only a single item, and the scroll snap is not loopable, return from GetSnapPosition.
Comments (1)
-
reporter - Log in to comment
Fixed by Pull Request #17