Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card sometimes scales incorrectly #8

Open
robinmanuelthiel opened this issue Feb 26, 2018 · 1 comment
Open

Card sometimes scales incorrectly #8

robinmanuelthiel opened this issue Feb 26, 2018 · 1 comment
Labels

Comments

@robinmanuelthiel
Copy link
Owner

When swiping very fast, the top card sometimes takes the scaling of the back card.

screen shot 2018-02-26 at 10 27 14

@robinmanuelthiel
Copy link
Owner Author

This could be caused by the switch of cards, as this happens on the UI-Thread and might be slow.

// Switch cards if this method has been called after a swipe and not at init
if (itemIndex != 0)
{
    // Remove swiped-away card (topcard) from stack
    CardStack.Children.Remove(topCard);

    // Scale swiped-away card (topcard) down and add it at the bottom of the stack
    topCard.Scale = defaultSubcardScale;
    CardStack.Children.Insert(0, topCard);
}

@robinmanuelthiel robinmanuelthiel removed their assignment Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant