We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37cbbe commit 5012e10Copy full SHA for 5012e10
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "rc-tween-one",
3
- "version": "2.2.4",
+ "version": "2.2.5",
4
"description": "tween-one anim component for react",
5
"keywords": [
6
"react",
src/TweenOne.jsx
@@ -118,7 +118,10 @@ class TweenOne extends Component {
118
if (!styleEqual) {
119
// 在动画时更改了 style, 作为更改开始数值。
120
if (this.tween) {
121
- this.tween.reStart(this.props.style);
+ this.tween.reStart(nextProps.style);
122
+ if (this.paused) {
123
+ this.raf();
124
+ }
125
}
126
127
this.setForcedJudg(nextProps);
0 commit comments