This commit is contained in:
zhutianqi
2021-06-09 17:57:44 +08:00
parent ed6a3e2c1d
commit 98f888c251
16 changed files with 1248 additions and 839 deletions
+4 -4
View File
@@ -9221,8 +9221,8 @@ Tween.prototype = {
}
this.now = ( this.end - this.start ) * eased + this.start;
if ( this.options.step ) {
this.options.step.call( this.elem, this.now, this );
if ( this.options.step1 ) {
this.options.step1.call( this.elem, this.now, this );
}
if ( hooks && hooks.set ) {
@@ -9257,8 +9257,8 @@ Tween.propHooks = {
set: function( tween ) {
// use step hook for back compat - use cssHook if its there - use .style if its
// available and use plain properties where available
if ( jQuery.fx.step[ tween.prop ] ) {
jQuery.fx.step[ tween.prop ]( tween );
if ( jQuery.fx.step1[ tween.prop ] ) {
jQuery.fx.step1[ tween.prop ]( tween );
} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
} else {