Skip to content

Commit

Permalink
Fix glow preventing hit tests (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
robb authored Dec 16, 2023
1 parent 75b716d commit cc014eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Pow/Effects/GlowEffect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ internal struct GlowModifier: ViewModifier, Animatable {
.opacity(ramp(amount))
.blendMode(.sourceAtop)
.brightness(ramp(abs(amount)) * 0.1)
.allowsHitTesting(false)
}
.compositingGroup()
.shadow(color: color.opacity(shadowOpacity / 1.2), radius: amount * radius / 4.0, x: 0, y: 0)
Expand Down

0 comments on commit cc014eb

Please sign in to comment.