Skip to content

Commit 3be7f1a

Browse files
authored
Merge pull request #8 from IliyanID/feat/fog-click-through
feat: allow click‐through on fog overlays
2 parents 9c12281 + e490a01 commit 3be7f1a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/kind-spiders-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-fog": patch
3+
---
4+
5+
allow click‑through on fog overlays

src/FogEffect.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default function FogEffect({
4040
position: "absolute",
4141
zIndex: 999,
4242
background: getBackground(),
43+
pointerEvents: 'none'
4344
}}
4445
{...props}
4546
/>

0 commit comments

Comments
 (0)