Skip to content

Commit

Permalink
fix: ScrollView click bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Dec 6, 2024
1 parent e643685 commit a921c8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/DDS/Component/ScrollView/ScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public struct DodamScrollView<C: View>: DodamNavigationViewProtocol {
}
.onChange(of: yCoordinate) {
let scrollOffset = -(($0 - topInset) / (borderSize ?? 0))
blueOpacity = max(min(scrollOffset, 1), 0)

// iOS 18부터 blueOpacity를 0으로 설정하면 클릭이 안 되는 버그가 발생하여 0.00001로 설정
blueOpacity = max(min(scrollOffset, 1), 0.00001)
}
}
)
Expand Down

0 comments on commit a921c8f

Please sign in to comment.