mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -442,7 +442,7 @@ AFTER:
|
|||||||
* for the cubic bezier curve (at least with web animations)
|
* for the cubic bezier curve (at least with web animations)
|
||||||
* Not sure if the negative step value is an error or not
|
* 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
|
* 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
|
* to the new easing curve, as `stepValue` is going to be given
|
||||||
* in terms of a linear curve.
|
* 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;
|
const playTo = (this._isOpen) ? !shouldComplete : shouldComplete;
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ export const createAnimation = (animationId?: string): Animation => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const setAnimationStep = (step: number) => {
|
const setAnimationStep = (step: number) => {
|
||||||
step = Math.min(Math.max(step, 0), 0.999);
|
step = Math.min(Math.max(step, 0), 0.9999);
|
||||||
if (supportsWebAnimations) {
|
if (supportsWebAnimations) {
|
||||||
webAnimations.forEach(animation => {
|
webAnimations.forEach(animation => {
|
||||||
animation.currentTime = animation.effect.getComputedTiming().delay + (getDuration() * step);
|
animation.currentTime = animation.effect.getComputedTiming().delay + (getDuration() * step);
|
||||||
|
Reference in New Issue
Block a user