bar: fix reaction button breaking scrolling
Signed-off-by: William Casarin <jb55@jb55.com> Changelog-Fixed: Fix reaction button breaking scrolling
This commit is contained in:
committed by
William Casarin
parent
cddb88b890
commit
0350809e82
@@ -205,19 +205,20 @@ struct LikeButton: View {
|
|||||||
shakaAnimationLogic()
|
shakaAnimationLogic()
|
||||||
}
|
}
|
||||||
.simultaneousGesture(longPressGesture())
|
.simultaneousGesture(longPressGesture())
|
||||||
|
.highPriorityGesture(TapGesture().onEnded {
|
||||||
|
guard !isReactionsVisible else { return }
|
||||||
|
withAnimation(Animation.easeOut(duration: 0.15)) {
|
||||||
|
self.action(damus_state.settings.default_emoji_reaction)
|
||||||
|
shouldAnimate = true
|
||||||
|
amountOfAngleIncrease = 20.0
|
||||||
|
}
|
||||||
|
})
|
||||||
.overlay(reactionsOverlay())
|
.overlay(reactionsOverlay())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func likeButton() -> some View {
|
func likeButton() -> some View {
|
||||||
Button(action: {
|
Group {
|
||||||
guard !isReactionsVisible else { return }
|
|
||||||
withAnimation(Animation.easeOut(duration: 0.15)) {
|
|
||||||
self.action(damus_state.settings.default_emoji_reaction)
|
|
||||||
shouldAnimate = true
|
|
||||||
amountOfAngleIncrease = 20.0
|
|
||||||
}
|
|
||||||
}) {
|
|
||||||
if let liked_emoji {
|
if let liked_emoji {
|
||||||
buildMaskView(for: liked_emoji)
|
buildMaskView(for: liked_emoji)
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
|
|||||||
Reference in New Issue
Block a user