Skip to content

Commit 8d65067

Browse files
committed
1 parent 1771bb9 commit 8d65067

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-tween-one",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "tween-one anim component for react",
55
"keywords": [
66
"react",

src/TweenOne.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ class TweenOne extends Component {
130130
}
131131
// 样式更新了后再执行动画;
132132
if (this.updateAnim && this.dom && this.dom.nodeName !== '#text') {
133+
if (this.tween) {
134+
this.cancelRequestAnimationFrame();
135+
}
133136
this.start();
134137
}
135138
}

0 commit comments

Comments
 (0)