fix(core): update
This commit is contained in:
@ -57,6 +57,8 @@ export class DomTools {
|
||||
debug: false,
|
||||
});
|
||||
|
||||
public scroller: plugins.SweetScroll;
|
||||
|
||||
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
|
||||
async (statePart, payload) => {
|
||||
const currentState = statePart.getState();
|
||||
@ -71,15 +73,11 @@ export class DomTools {
|
||||
|
||||
constructor() {
|
||||
// lets care about third party stuff
|
||||
document.addEventListener(
|
||||
'DOMContentLoaded',
|
||||
() => {
|
||||
const scroller = new plugins.sweetscroll({
|
||||
/* some options */
|
||||
});
|
||||
},
|
||||
false,
|
||||
);
|
||||
this.domToolsReady.promise.then(() => {
|
||||
this.scroller = new plugins.SweetScroll({
|
||||
/* some options */
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private runOnceTrackerStringMap = new Stringmap();
|
||||
|
Reference in New Issue
Block a user