-
Notifications
You must be signed in to change notification settings - Fork 457
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
Change cards only through the buttons not by swiping #142
Comments
@AnkitTailoredTech |
Hey @AnkitTailoredTech, not ideal but one possible workaround is to keep private fun CardStackLayoutManager.setCanInteract(canInteract: Boolean) {
setCanScrollHorizontal(canInteract)
setCanScrollVertical(canInteract)
}
....
cardsStackLayoutManager.setCanInteract(true)
membersViewerStackView.swipe()
....
override fun onCardSwiped(direction: Direction?) {
cardsStackLayoutManager.setCanInteract(false)
}
|
I have This Problem Too ... What SHould To do Now ??? |
…ons not by swiping) by calling manager.setSwipeEnabled(true) you enable this feature.
@AnkitTailoredTech @theGlenn @Sanaebadi97
|
Hi,
I want to change the cards by clicking on the buttons only and disable the swipe completely.
I do not find the setSwipeEnabled(true/false) method. Also if I disable the swiping on both Horizontal and Vertical [setCanScrollHorizontal(false) and setCanScrollVertical(false)] then clicking on the buttons, swipe does not work. Can you please help me on this ?
The text was updated successfully, but these errors were encountered: