Select all elements at a click's coordinates | Brianna Wilson | Observable
md
ojs
Author
Brianna Wilson
@briannawilson
Visualizing, writing about design + data. Former product design engineer at Apple and Stanford 🌲. Down syndrome mom 💛💙, Oregon 🌲🌲
Comments (2)
Fabian Iwand
Nov 7, 2021
Instead of hiding the element you can set `pointer-events` to "none", which should be more efficient.
Brianna Wilson
Nov 8, 2021
Thanks! Great tip.
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
1
Follow
Follow
Select all elements at a click's coordinates | Brianna Wilson | Observable