Skip to content

How to stop animation when button is pressed #36

Answered by LanKuDot
qasymcorp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, For 1. when the movement of the list is ended, it will send OnMovementEnd event.
For 2. add a flag (i.e. _blockInput) to the CircularScrollingList.cs, and create a function to toggle this flag.
Then check the flag in the following functions: MoveOneUnitUp, MoveOneUnitDown, OnBeginDrag, OnDrag, OnEndDrag, and OnScroll. It will be like:

public void MoveOneUnitUp()
{
    if (_hasNoContent || _blockInput)
        return;

    ...
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@qasymcorp
Comment options

Answer selected by qasymcorp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants