Open sammichelson opened 7 years ago
+1
I am also facing same issue, is there any solution provided for this issue yet?
I event tried new EventTargetInterruptSource(document, 'scroll'), scroll is not reflecting on components that are being used under <router-outlet>
I'm submitting a ... (check one with "x")
Current behavior I noticed when using my own DocumentInterruptSource instance that the scroll event doesn't trigger for document.documentElement.
However document.onscroll and window.onscroll work as expected so I'm using WindowInterruptSource for now.
Expected behavior DocumentInterruptSource events should work for document event listeners
Minimal reproduction of the problem with instructions in the browser console if you type and enter: document.documentElement.onscroll = function() { console.log('scroll')} and scroll, nothing happens.
My interrupt sources are:
let interruptSources: DocumentInterruptSource[] = [new DocumentInterruptSource( 'mousemove keydown mousedown touchstart touchmove scroll')];
What is the motivation / use case for changing the behavior? The default interrupts use DocumentInterruptSource.
Please tell us about your environment: MacOSX Chrome 55
@ng-idle version: 2.x Older version 1.0.0-alpha.13
Angular version: 2.x angular2-rc4
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] Chrome 55
Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript ^1.8.10
Node:
node --version
= v6.6.0