react-lottie
react-lottie copied to clipboard
Click on the component will stop animation
Is that purposed to stop the animation when simply click on that? How should I set up to avoid this situation?
I have the same issue on my animation, whenever I click on it, it will kinda pause/freeze.
It was actually addressed here: #53
Just add isClickToPauseDisabled={true}
as a prop fixes this issue.
For example
<Lottie isClickToPauseDisabled={true}/>
Just noticed that you can omit the {true}
in isClickToPauseDisabled={true}
For example: <Lottie isClickToPauseDisabled>
Solved my problem.
It was actually addressed here: #53 Just add
isClickToPauseDisabled={true}
as a prop fixes this issue.For example
<Lottie isClickToPauseDisabled={true}/>
Thank you so much!
Can you add this to the readme page? isClickToPauseDisabled={true}
I don't see it there.
Anyone else feels like this is an unexpected default?
Yes I agree, this is a poor default. Wanting to click an animation to pause it is not an everyday use case, and isClickToPauseDisabled
is cumbersome at best.
Suggest that Lottie should remove this default and then add a new option like clickToPause
.
(It's also confusing when some options are props, so the suggestion here would improve that)
please remove this feature as its not good for using in fullscreen window
Agreed. I don't think clicking to pause should be default enabled. This should be by default disabled.