Skip to content

Commit

Permalink
add pointerEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
lindelof committed Mar 31, 2021
1 parent 87dc7ca commit 543ece6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-mouse-particles",
"version": "1.1.2",
"version": "1.1.3",
"description": "A mouse particle effect react component",
"author": "lindelof",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MouseParticles extends React.Component {
this.dom.style.left = "0px";
this.dom.style.top = "0px";
this.dom.style.zIndex = 9999;
this.dom.pointerEvents = "none";
this.dom.style.pointerEvents = "none";
this.dom.id = `rmps_${(Math.random() * 999999) >> 0}`;
document.body.appendChild(this.dom);
}
Expand Down Expand Up @@ -82,7 +82,7 @@ class MouseParticles extends React.Component {

isCullDom(e) {
this.level = 0;

if (isInputText(e.target)) return true;
if (isTextBox(e.target)) return true;
if (!this.cullClassList || !this.cullClassList.length) return false;
Expand Down

0 comments on commit 543ece6

Please sign in to comment.