GetSnapPosition Throws NullReferenceException When not Loopable with Single Item [Version 1, in development]

Issue #8 resolved
Beka Westberg repo owner created an issue

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

  1. Create a scroll snap with a single item.
  2. Attempt to fling the scroll snap.
  3. 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)

  1. Log in to comment