fix(core): update

This commit is contained in:
Philipp Kunz 2020-06-28 16:59:14 +00:00
parent 50ace4c236
commit e3e6d06969
2 changed files with 9 additions and 11 deletions

View File

@ -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();

View File

@ -8,6 +8,6 @@ import * as websetup from '@pushrocks/websetup';
export { smartpromise, smartrouter, smartstate, webrequest, websetup };
// third party scope
import sweetscroll from 'sweet-scroll';
import SweetScroll from 'sweet-scroll';
export { sweetscroll };
export { SweetScroll };