VincentGarreau / particles.js

A lightweight JavaScript library for creating particles
https://vincentgarreau.com/particles.js/
MIT License
29.08k stars 4.83k forks source link

disable pointer events if clicks are disabled #456

Open roksprogar opened 4 years ago

roksprogar commented 4 years ago

Hey, thanks for this wonderful library.

Dunno if you're going to include this change, but I used it for one of my projects: https://www.precisefunnels.com/profitable-online-shop.

My problem was, that even though the clicks were disabled in particles json, the author name and share buttons still weren't clickable in the header (because the particles canvas was still intercepting clicks), so I solved this with css pointer-events.

Maybe this should be universal behavior.