commit 1fff0abce5ce3bc05f103c1f2f8aaadfea24a3be
parent b1fee253b4faa691c8b4eb0c445df74c721bc829
Author: William Casarin <jb55@jb55.com>
Date: Sun, 14 May 2023 11:04:56 -0700
Make it easier to tap zap button
Right now the tap target only covered the bolt, now it's bolt+amount
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/damus/Components/ZapButton.swift b/damus/Components/ZapButton.swift
@@ -124,13 +124,6 @@ struct ZapButton: View {
.foregroundColor(zap_color)
.font(.footnote.weight(.medium))
})
- .simultaneousGesture(LongPressGesture().onEnded {_ in
- button.showing_zap_customizer = true
- })
- .highPriorityGesture(TapGesture().onEnded {
- tap()
- })
- .accessibilityLabel(NSLocalizedString("Zap", comment: "Accessibility label for zap button"))
if zaps.zap_total > 0 {
Text(verbatim: format_msats_abbrev(zaps.zap_total))
@@ -138,6 +131,13 @@ struct ZapButton: View {
.foregroundColor(zap_color)
}
}
+ .accessibilityLabel(NSLocalizedString("Zap", comment: "Accessibility label for zap button"))
+ .simultaneousGesture(LongPressGesture().onEnded {_ in
+ button.showing_zap_customizer = true
+ })
+ .highPriorityGesture(TapGesture().onEnded {
+ tap()
+ })
.sheet(isPresented: $button.showing_zap_customizer) {
CustomizeZapView(state: damus_state, event: event, lnurl: lnurl)
}