Snap Positions Not Being Updated in ArrangeItems [Version 1]

Issue #5 resolved
Beka Westberg repo owner created an issue

Problem Statement

It was assumed that items' snap positions would only need to be updated after they are arranged if the content's pivot were offcenter along the movement axis. This is not the case.

Steps to Reproduce

  1. Create a Directional Scroll Snap with two items.
  2. Give one item an anchored position of -50 along the movement axis.
  3. Give the other item an anchored position of 150 along the movement axis.
  4. Hit play, scroll the scroll snap, and observe how the snap positions are incorrect.

Additional Information

Since it is difficult to calculate when the items snap positions need to be updated and when they do not need to be updated it is recommended to simply remove the checks and always update the items.

Comments (1)

  1. Log in to comment