react-tinder-card icon indicating copy to clipboard operation
react-tinder-card copied to clipboard

fix animateBack snapBackDuration delay

Open Luk-z opened this issue 3 years ago • 0 comments

in this commit https://github.com/3DJakob/react-tinder-card/commit/95080d0b759cf518d3c3388a7f9c70db5a326ef4 setTimeout was replaced by sleep async function. To preserve the previous behavior the total sleep time has to be snapBackDuration*.75+snapBackDuration*.25.

Luk-z avatar Dec 29 '21 18:12 Luk-z