Sélecteur pour le thème d'icone
This commit is contained in:
@ -30,7 +30,7 @@ module.exports = {
|
||||
var el = React.findDOMNode(this);
|
||||
|
||||
if(typeof this.onInViewport === 'function') {
|
||||
el.parentNode.addEventListener('scroll', debounce(_onInViewport.bind(this), 250));
|
||||
window.document.addEventListener('scroll', debounce(_onInViewport.bind(this), 250), true);
|
||||
}
|
||||
|
||||
_onInViewport.call(this);
|
||||
|
Reference in New Issue
Block a user