File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rc-tween-one" ,
3
- "version" : " 2.2.21 " ,
3
+ "version" : " 2.2.22 " ,
4
4
"description" : " tween-one anim component for react" ,
5
5
"keywords" : [
6
6
" react" ,
88
88
"prop-types" : " ^15.6.1" ,
89
89
"babel-runtime" : " 6.x" ,
90
90
"raf" : " ~3.4.0" ,
91
- "style-utils" : " ~0.1.13 " ,
91
+ "style-utils" : " ~0.2.0 " ,
92
92
"tween-functions" : " ~1.2.0"
93
93
},
94
94
"types" : " typings/index.d.ts"
Original file line number Diff line number Diff line change @@ -308,8 +308,10 @@ p.render = function () {
308
308
} ;
309
309
const maxPer = this . perFrame - this . accuracy ;
310
310
const startTime = item . delay && reverse ? - maxPer : 0 ;
311
- if ( progressTime >= startTime &&
312
- ! ( progressTime > duration && item . mode === 'onComplete' ) &&
311
+ if ( ( progressTime >= startTime &&
312
+ ! ( progressTime > duration && item . mode === 'onComplete' )
313
+ || ( progressTime < startTime && item . mode && item . mode !== 'onStart' )
314
+ ) &&
313
315
this . start [ i ] ) {
314
316
const updateAnim = this . updateAnim === 'update' ;
315
317
progressTime = ( progressTime < maxPer ) && ! reverse
Original file line number Diff line number Diff line change 1
1
/* eslint-disable func-names, no-console */
2
- import cssList , {
2
+ import {
3
+ cssList ,
3
4
checkStyleName ,
4
5
getGsapType ,
5
6
parseShadow ,
You can’t perform that action at this time.
0 commit comments