alvarotrigo / alvarotrigo/react-fullpage
ScrollOverflow not working when I listen to mousemove event.
オープン
reproduction required
- 主要言語
- JavaScript
- スター
- 1.3k
- フォーク
- 172
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
}
})
});
}
```
コントリビューションガイド
評価
この issue はまだ評価されていません。