in packages/bui-core/src/ScrollView/ScrollView.tsx [20:28]
function step() {
const stepFrom = linear(+new Date() - sTime, from, change, dur);
if ((isLarger && stepFrom >= to) || (!isLarger && to >= stepFrom)) {
callback?.(to);
return;
}
callback?.(stepFrom);
requestAnimationFrame(step);
}