Commit 8618487c authored by Scott González's avatar Scott González Committed by Dave Methvin

Easing: Only use the state to calculate the value. Fixes #11284 - Simplify...

Easing: Only use the state to calculate the value. Fixes #11284 - Simplify easings to only rely on the state.
parent bf7a4df2
......@@ -400,11 +400,11 @@ jQuery.extend({
},
easing: {
linear: function( p, n, firstNum, diff ) {
return firstNum + diff * p;
linear: function( p ) {
return p;
},
swing: function( p, n, firstNum, diff ) {
return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
swing: function( p ) {
return ( -Math.cos( p*Math.PI ) / 2 ) + 0.5;
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment