scrollbar: prevent error
This commit is contained in:
parent
a0fed34edb
commit
3d12e85e56
1 changed files with 1 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ export default class Scrollbar extends StaticProperties(Fader, {
|
|||
}
|
||||
|
||||
fastdom.measure(()=>{
|
||||
if (!this.scrollTarget) return
|
||||
this.scrollTarget.on('scroll', onScroll)
|
||||
onScroll({}, true)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue