Added looping items.
N/A
It adds a “Loop Items” option to the Directional Scroll Snap that causes items to appear to be in a loop.
Looping is an important feature.
Updated tests to handle the new m_Items data structure (linked list)
Added a GetMaxItemSpacing test file.
Horizontal Test
Vertical Test
Hand Testing:
Added a Scroll Snap.
Set Loop to true.
Set it to Vertical.
Added 3 items, spaced with a vertical margin of 100.
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)
Set it to Horizontal.
Added 3 items, spaced with a horizontal margin of 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)
Added 1 item.
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)
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)
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:
Added a Scroll Snap.
Set Loop to true.
Set it to Vertical.
Added 3 items, spaced with a vertical margin of 100.
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)
Added a Scroll Snap.
Set Loop to true.
Set it to Horizontal.
Added 3 items, spaced with a horizontal margin of 100.
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)
Added a Scroll Snap.
Set Loop to true.
Set it to Vertical.
Added 1 item.
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)
Added a Scroll Snap.
Set Loop to true.
Set it to Horizontal.
Added 1 item.
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