Skip to content

Commit

Permalink
- Revert to using rootDetail binding to go back on compact size.
Browse files Browse the repository at this point in the history
  • Loading branch information
boscojwho committed Sep 16, 2023
1 parent 6cd8b98 commit ce893ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Mlem/Views/Tabs/Feeds/Feed View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ struct FeedView: View {
return true
} else {
print("show/hide sidebar in compact size class")
// rootDetails = nil
// return true
// Return `false` to use dismiss action to go back to sidebar. Not sure
return false
// This seems a lot more reliable than dismiss action for some reason. [2023.09]
rootDetails = nil
return true
// // Return `false` to use dismiss action to go back to sidebar. Not sure
// return false
}
} else {
print("scroll to top")
Expand Down

0 comments on commit ce893ec

Please sign in to comment.