scrollbar: prevent error

This commit is contained in:
jean-emmanuel 2026-03-02 10:53:45 +01:00
parent a0fed34edb
commit 3d12e85e56

View file

@ -166,6 +166,7 @@ export default class Scrollbar extends StaticProperties(Fader, {
}
fastdom.measure(()=>{
if (!this.scrollTarget) return
this.scrollTarget.on('scroll', onScroll)
onScroll({}, true)
})