Skip to content

Commit fa4bf50

Browse files
committed
another apparently-necessary fix
1 parent 49d59ab commit fa4bf50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte/src/transition/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ export function fly(
8383
const target_opacity = +style.opacity;
8484
const transform = style.transform === 'none' ? '' : style.transform;
8585
const od = target_opacity * (1 - opacity);
86-
const [xValue, xUnit] = split_css_unit(x);
87-
const [yValue, yUnit] = split_css_unit(y);
86+
const [x_value, x_unit] = split_css_unit(x);
87+
const [y_value, y_unit] = split_css_unit(y);
8888
return {
8989
delay,
9090
duration,
9191
easing,
9292
css: (t, u) => `
93-
transform: ${transform} translate(${(1 - t) * xValue}${xUnit}, ${(1 - t) * yValue}${yUnit});
93+
transform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});
9494
opacity: ${target_opacity - od * u}`
9595
};
9696
}

0 commit comments

Comments
 (0)