Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Aug 30, 2024
1 parent 8c867c6 commit 2c70f67
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function TransparentOverlay({onPress: onPressProp}: TransparentOverlayProps) {
e?.preventDefault();
}, []);

// The overlay is a semi-transparent layer that covers the entire screen and is used to close a modal when clicked.
// The touch event passes through the transparent overlay to the elements underneath, so we need to prevent that by adding a nearly invisible background color to the overlay.
const overlay = useMemo(
() => ({
backgroundColor: 'rgba(0, 0, 0, 0.005)',
Expand Down

0 comments on commit 2c70f67

Please sign in to comment.