Answer the question
In order to leave comments, you need to log in
Why doesn't the scroll or scroll event of the mouse wheel fire?
There is such a component, when trying to catch the scroll or mousewheel event, nothing happens. No reaction.
The content scrolls by screens at 100vh, maybe that's why the scroll event doesn't work, but it's not clear why the mousewheel doesn't work, maybe because of the FullPage.js plugin, but I'm not 100% sure. What else could be the problem?
class App extends React.Component {
constructor() {
super();
this.scrollStopper = (e) => {
}
}
componentDidMount() {
window.addEventListener('mousewheel', function() {
alert(1)
})
}
render() {
return (
<main>
<ReactFullpage
render={({ state, fullpageApi }) => {
return (
<div id="fullpage-wrapper">
<div></div>
</div>
);
}}
/>
</main>
);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question