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({ ...@@ -400,11 +400,11 @@ jQuery.extend({
}, },
easing: { easing: {
linear: function( p, n, firstNum, diff ) { linear: function( p ) {
return firstNum + diff * p; return p;
}, },
swing: function( p, n, firstNum, diff ) { swing: function( p ) {
return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum; 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