File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,10 @@ export function coreMixin(BScroll) {
330
330
}
331
331
}
332
332
333
+ BScroll . prototype . _transitionProperty = function ( property = 'transform' ) {
334
+ this . scrollerStyle [ style . transitionProperty ] = property
335
+ }
336
+
333
337
BScroll . prototype . _transitionTime = function ( time = 0 ) {
334
338
this . scrollerStyle [ style . transitionDuration ] = time + 'ms'
335
339
@@ -462,6 +466,7 @@ export function coreMixin(BScroll) {
462
466
this . isInTransition = this . options . useTransition && time > 0 && ( x !== this . x || y !== this . y )
463
467
464
468
if ( ! time || this . options . useTransition ) {
469
+ this . _transitionProperty ( )
465
470
this . _transitionTimingFunction ( easing . style )
466
471
this . _transitionTime ( time )
467
472
this . _translate ( x , y )
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export const style = {
65
65
transform,
66
66
transitionTimingFunction : prefixStyle ( 'transitionTimingFunction' ) ,
67
67
transitionDuration : prefixStyle ( 'transitionDuration' ) ,
68
+ transitionProperty : prefixStyle ( 'transitionProperty' ) ,
68
69
transitionDelay : prefixStyle ( 'transitionDelay' ) ,
69
70
transformOrigin : prefixStyle ( 'transformOrigin' ) ,
70
71
transitionEnd : prefixStyle ( 'transitionEnd' )
You can’t perform that action at this time.
0 commit comments