Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
? duration(Math.abs(target - start))
: duration,
)
if (resolvedDuration === 0) {
recyclable[2] = target
return of(recyclable)
}
return pipe(
durationProgress(resolvedDuration),
map(p => {
recyclable[2] = mix(start, target, easing(p))
return recyclable
}),
takeUntil(
merge(
fromEvent(node, 'wheel', PASSIVE),
fromEvent(node, 'touchstart', PASSIVE),
),
),
)
}),
flatten,