Skip to content

Automatic left swipe wrong direction #349

Description

@totenhund

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()
        }

Activity

  1. martavoice commented on Nov 9, 2021

    @martavoice

    cardStackLayoutManager.setDirections(Direction.HORIZONTAL)

    add this line in basic manager setup

  2. shobhik commented on Dec 24, 2021

    @shobhik

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions