Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
Set isDragging when scrolling in both vertical directions
Browse files Browse the repository at this point in the history
  • Loading branch information
dus7 committed Dec 10, 2024
1 parent f373c3f commit 6a0bdcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo/NewTabPageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct NewTabPageView: View {
.simultaneousGesture(
DragGesture()
.onChanged({ value in
if value.translation.height > 0 {
if value.translation.height != 0 {
viewModel.beginDragging()
}
})
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/SimpleNewTabPageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct SimpleNewTabPageView: View {
.simultaneousGesture(
DragGesture()
.onChanged({ value in
if value.translation.height > 0 {
if value.translation.height != 0.0 {
viewModel.beginDragging()
}
})
Expand Down

0 comments on commit 6a0bdcb

Please sign in to comment.