I want the Curtains controller to manage page scroll state as part of its instance lifecycle.
I want the Curtains controller to manage page scroll state as part of its instance lifecycle.: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). A session should work like const curtains = new Curtains({ container, watchScroll: true }); curtains.onScroll(cb)…
The task
A session should work like `const curtains = new Curtains({ container, watchScroll: true }); curtains.onScroll(cb); curtains.updateScrollValues(x, y); curtains.getScrollValues(); curtains.getScrollDeltas(); curtains.dispose();`. `getScrollValues()` should return the current tracked offsets as `{ x, y }`, initialized…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.