- changed title to End Spacing not Saved on Disable [Version 1, in development]
End Spacing not Saved on Disable [Version 1, in development]
Issue #2
resolved
Problem Statement
Sometimes you may want to temporarily disable, and then re-enable a scroll snap. If the scroll snap is set to loop, and has an end margin that is different from the other item margins, it can cause the margin information to become "corrupted".
Observe how when item 2 loops it is further away from item 1 than it was originally.
Expected Behavior
The scroll snap should save the current end margin (either to the serialized end margin variable, or somewhere else) when it is disabled. This way when it is reloaded the correct end margin will be added to the last item.
Steps to Reproduce
- Create a Scroll Snap with at least two items, evenly spaced.
- Set the end margin to be different than the margin between items.
- Run the game, and loop 1 item.
- Disable and reenable the scroll snap.
- Loop another item, observe how its margin is incorrect.
Additional Information
N/A
Comments (2)
-
reporter -
reporter - changed status to resolved
Fixed in Pull Request #19
- Log in to comment