alvarotrigo / alvarotrigo/react-fullpage
ScrollOverflow not working when I listen to mousemove event.
Aperta
reproduction required
- Lingua principale
- JavaScript
- Stelle
- 1.3k
- Fork
- 172
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'm trying to create a cutom cursor by listening to the mousemove event, however for some reason, this breaks ScrollOverflow, I don't know why.
Cursor.js component
```
componentDidMount(){
this.loadCursor();
}
loadCursor(){
document.addEventListener("mousemove", e => {
const clientX = e.clientX;
const clientY = e.clientY;
this.setState({
position: {
x : clientX,
y: clientY
}
})
});
}
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.