Configuration example #6
GeorgianStan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quick demo of how to use the configuration options:
Initiate only swipe left and swipe right events on the body element.
By default all of them all enable, therefore to do this, you can set
isSwipeDownDesired
andisSwipeUpDesired
as false.If you want to update these options in the future, then you can capture the
updateOptions
function.Now to update the options for the same element, you can simply call
Notice that the
updateOptions()
function will revert the options to their initial state. Therefore, if you want to keep the ones you specified earlier, you need to add them againBeta Was this translation helpful? Give feedback.
All reactions