Skip to content

Commit 2f8b2bf

Browse files
committed
Fix promo card touch interception bug in EdgeCarousel
Add dynamic zIndex to ItemBox animated style so the active card is always the topmost touch target. Previously, all cards shared the same layout frame and later items in the array intercepted touches meant for the visually active card.
1 parent 0928929 commit 2f8b2bf

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- fixed: Fixed Zano token minting transaction detection issues.
66
- fixed: Fixed Zano resync data clearing bug.
77
- fixed: Improved Nym Mixnet Network Privacy performance.
8+
- fixed: Promo card carousel touch interception opening wrong card's CTA link.
89

910
## 4.44.0 (2025-02-24)
1011

‎src/components/common/EdgeCarousel.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const ItemBox: React.FC<ItemBoxProps> = props => {
106106
const animatedStyle = useAnimatedStyle(() => {
107107
const delta = Math.min(1, Math.abs(itemIndex - scrollIndex.value))
108108
return {
109+
zIndex: Math.round((1 - delta) * 1000),
109110
opacity: 1 - 0.5 * delta,
110111
transform: [
111112
{

0 commit comments

Comments
 (0)