fix(menu): fix jump when dragging open (#20288)

fixes #20286
This commit is contained in:
Liam DeBeasi
2020-01-24 15:22:51 -05:00
committed by GitHub
parent 09d951ae1b
commit b14471178e
2 changed files with 3 additions and 3 deletions

View File

@ -566,7 +566,7 @@ export const createAnimation = (animationId?: string): Animation => {
};
const setAnimationStep = (step: number) => {
step = Math.min(Math.max(step, 0), 0.999);
step = Math.min(Math.max(step, 0), 0.9999);
if (supportsWebAnimations) {
webAnimations.forEach(animation => {
animation.currentTime = animation.effect.getComputedTiming().delay + (getDuration() * step);