Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
FulcrumOne committed Nov 17, 2024
1 parent 59fedfa commit 7e92b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Internal/View Models/ViewModel+VerticalStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,15 @@ private extension VM.VerticalStack {

// MARK: On Ended
extension VM.VerticalStack {
func onPopupDragGestureEnded(_ value: CGFloat) async { Task {
func onPopupDragGestureEnded(_ value: CGFloat) async {
guard value != 0, let activePopup = popups.last else { return }

await dismissLastPopupIfNeeded(activePopup)

let targetDragHeight = await calculateTargetDragHeight(activePopup)
await updateGestureTranslation(0)
await updatePopupDragHeight(targetDragHeight, activePopup)
}}
}
}
private extension VM.VerticalStack {
func dismissLastPopupIfNeeded(_ popup: AnyPopup) async { switch activePopupProperties.translationProgress >= dragThreshold {
Expand Down

0 comments on commit 7e92b50

Please sign in to comment.