Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
() => ({
config,
busy: false,
space: 0,
current: 0,
offset: 0,
controller: new Controller({ scroll: 0 }),
layers: new Set(),
update: () => update(),
scrollTo: offset => scrollTo(offset),
stop: () => state.controller.stop(),
}),
[]