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

Automatic left swipe wrong direction #349

Open
totenhund opened this issue Aug 3, 2021 · 2 comments
Open

Automatic left swipe wrong direction #349

totenhund opened this issue Aug 3, 2021 · 2 comments

Comments

@totenhund
Copy link

totenhund commented Aug 3, 2021

When clicking left button card is swiped in right direction, but it is set to left

binding.skipButton.setOnClickListener {

            val settingLeft = SwipeAnimationSetting.Builder()
                .setDirection(Left)
                .setDuration(Duration.Normal.duration)
                .setInterpolator(AccelerateInterpolator())
                .build()

            manager.setSwipeAnimationSetting(settingLeft)

            binding.stackView.swipe()
        }
@martavoice
Copy link

cardStackLayoutManager.setDirections(Direction.HORIZONTAL)

add this line in basic manager setup

@shobhik
Copy link

shobhik commented Dec 24, 2021

Thanks @martavoice - unfortunately, that didn't solve it, whether I add setDirections() before or after setSwipeAnimationSetting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants