Added Looping Items.

Merged
#14 · Created  · Last updated

Merged pull request

Added looping items.

d24c3cd·Author: ·Closed by: ·2019-03-07

Description

Resolves

N/A

Proposed Changes

It adds a “Loop Items” option to the Directional Scroll Snap that causes items to appear to be in a loop.

Reason for Changes

Looping is an important feature.

Test Coverage

  • Updated tests to handle the new m_Items data structure (linked list)

  • Added a GetMaxItemSpacing test file.

    • Horizontal Test

    • Vertical Test

Hand Testing:

  1. Added a Scroll Snap.

  2. Set Loop to true.

  3. Set it to Vertical.

  4. Added 3 items, spaced with a vertical margin of 100.

  5. Set the End Margin to 100.

  • Tested Dragging Towards End Items, Vertical (pass)

  • Tested Dragging Towards Start Items, Vertical (pass)

  • Tested Fling Towards End Items, Vertical (pass)

  • Tested Flinging Towards Start Items, Vertical (pass)

  1. Added a Scroll Snap.

  2. Set Loop to true.

  3. Set it to Horizontal.

  4. Added 3 items, spaced with a horizontal margin of 100.

  5. Set the End Margin to 100.

  • Tested Dragging Towards End Items, Horizontal (pass)

  • Tested Dragging Towards Start Items, Horizontal (pass)

  • Tested Fling Towards End Items, Horizontal (pass)

  • Tested Flinging Towards Start Items, Horizontal (pass)

  1. Added a Scroll Snap.

  2. Set Loop to true.

  3. Set it to Vertical.

  4. Added 1 item.

  5. Set the End Margin to 200 (height of the scroll snap).

  • Tested Dragging Towards the End, Vertical (pass)

  • Tested Dragging Towards the Start, Vertical (pass)

  • Tested Fling Towards the End, Vertical (pass)

  • Tested Flinging Towards the Start, Vertical (pass)

  1. Added a Scroll Snap.

  2. Set Loop to true.

  3. Set it to Horizontal.

  4. Added 1 item.

  5. Set the End Margin to 200 (width of the scroll snap).

  • Tested Dragging Towards the End, Horizontal (pass)

  • Tested Dragging Towards the Start, Horizontal (pass)

  • Tested Fling Towards the End, Horizontal (pass)

  • Tested Flinging Towards the Start, Horizontal (pass)

Additional Information

N/A

0 attachments

0 comments

Loading commits...