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, debug: false,
}); });
public scroller: plugins.SweetScroll;
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>( private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
async (statePart, payload) => { async (statePart, payload) => {
const currentState = statePart.getState(); const currentState = statePart.getState();
@ -71,15 +73,11 @@ export class DomTools {
constructor() { constructor() {
// lets care about third party stuff // lets care about third party stuff
document.addEventListener( this.domToolsReady.promise.then(() => {
'DOMContentLoaded', this.scroller = new plugins.SweetScroll({
() => { /* some options */
const scroller = new plugins.sweetscroll({ });
/* some options */ });
});
},
false,
);
} }
private runOnceTrackerStringMap = new Stringmap(); private runOnceTrackerStringMap = new Stringmap();

View File

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