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