alvarotrigo / alvarotrigo/react-fullpage

ScrollOverflow not working when I listen to mousemove event.

オープン
#133 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。