|
|
|
@ -185,7 +185,9 @@ export function transition(flags, element, get_fn, get_params) {
|
|
|
|
const start_p = p;
|
|
|
|
const start_p = p;
|
|
|
|
const end_time = start_time + adjusted_duration;
|
|
|
|
const end_time = start_time + adjusted_duration;
|
|
|
|
|
|
|
|
|
|
|
|
// tick?.(p, 1 - p); // TODO put in nested effect, to avoid interleaved reads/writes?
|
|
|
|
if (p === 0) {
|
|
|
|
|
|
|
|
tick?.(p, 1 - p); // TODO put in nested effect, to avoid interleaved reads/writes?
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
current_task = loop((now) => {
|
|
|
|
current_task = loop((now) => {
|
|
|
|
if (now >= end_time) {
|
|
|
|
if (now >= end_time) {
|
|
|
|
|