fix(core): update
This commit is contained in:
parent
50ace4c236
commit
e3e6d06969
@ -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({
|
||||
this.domToolsReady.promise.then(() => {
|
||||
this.scroller = new plugins.SweetScroll({
|
||||
/* some options */
|
||||
});
|
||||
},
|
||||
false,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
private runOnceTrackerStringMap = new Stringmap();
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user