mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
@ -442,7 +442,7 @@ AFTER:
|
||||
* for the cubic bezier curve (at least with web animations)
|
||||
* Not sure if the negative step value is an error or not
|
||||
*/
|
||||
const adjustedStepValue = (stepValue <= 0) ? 0.01 : stepValue;
|
||||
const adjustedStepValue = (stepValue < 0) ? 0.01 : stepValue;
|
||||
|
||||
/**
|
||||
* Animation will be reversed here, so need to
|
||||
@ -452,7 +452,7 @@ AFTER:
|
||||
* to the new easing curve, as `stepValue` is going to be given
|
||||
* in terms of a linear curve.
|
||||
*/
|
||||
newStepValue += getTimeGivenProgression([0, 0], [0.4, 0], [0.6, 1], [1, 1], clamp(0, adjustedStepValue, 1))[0];
|
||||
newStepValue += getTimeGivenProgression([0, 0], [0.4, 0], [0.6, 1], [1, 1], clamp(0, adjustedStepValue, 0.9999))[0] || 0;
|
||||
|
||||
const playTo = (this._isOpen) ? !shouldComplete : shouldComplete;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user