This repository has been archived by the owner on May 7, 2023. It is now read-only.
Can't click through the gradient on the "Overflow scroll gradient" #26
Labels
bug
Something isn't working
Overflow scroll gradient
This snippet adds a transparent-to-white gradient on top of a scrollable area giving the effect that the content is fading away. For the majority of the area underneath this content, a user would think it would still be able to interact with the content but the gradient would block any interaction.
TLDR
Buttons at the bottom of the scroll area are un-clickable. Text at the bottom of the scroll area is un-selectable.
The fix is to add
pointer-events: none
to the gradient:Browser Support
https://caniuse.com/#search=pointer-events
The text was updated successfully, but these errors were encountered: