Skip to content

update local value from outside ? #54

Answered by dbismut
littlee asked this question in Q&A
Discussion options

You must be logged in to vote

@littlee yep, that's what I thought, here is the amended codesandbox that should work as you want.
https://codesandbox.io/s/5mx7vx12px

Temp is used as a cache value that is set at the element position when the gesture starts: in this case it works a little bit like initial, only here we set it to the actual element position instead of the pointer position like initial works.

Feel free to close the issue if you feel this answer your questions!

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dbismut
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #54 on December 09, 2020 10:38.