Skip to content

Commit

Permalink
perf(UI): dynamic calculation for confetti location
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry23011 committed May 5, 2024
1 parent 15197ee commit 453787d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Easydict/Swift/View/SettingView/Tabs/TabView/AboutTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ struct AboutTab: View {
.padding(.bottom, 2)
.padding(.leading, 16)
.padding(.trailing, 16)
.onTapGesture {
.onTapGesture { location in
proxy.move(
to: CGPoint(
// Unify x-point for Settings and Menubar About view
x: (geometry.size.width / 2) - 159.5,
y: 70
to:
CGPoint(
x: location.x + ((geometry.size.width / 2) - 222),
y: location.y + 58
)
)
proxy.burst()
Expand Down

0 comments on commit 453787d

Please sign in to comment.