Use requestIdleCallback for tooltip creation

This commit is contained in:
2018-04-20 13:34:12 +02:00
parent 541b441fd9
commit bfc9d626a1
3 changed files with 60 additions and 47 deletions

View File

@ -59,6 +59,11 @@ export class MutationQueue {
}
wait(callBack: () => void) {
if(this.mutations.length === 0) {
callBack()
return
}
this.onClearCallBacks.push(callBack)
}
}