We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17ce115 commit bb3d534Copy full SHA for bb3d534
2 files changed
Core/Sources/ChatGPTChatTab/ChatPanel.swift
@@ -48,7 +48,6 @@ struct ChatPanelMessages: View {
48
@Namespace var scrollSpace
49
@State var scrollOffset: Double = 0
50
@State var listHeight: Double = 0
51
-
52
@Environment(\.isEnabled) var isEnabled
53
54
var body: some View {
@@ -137,8 +136,11 @@ struct ChatPanelMessages: View {
137
136
138
func trackScrollWheel() {
139
NSApplication.shared.publisher(for: \.currentEvent)
+ .filter {
140
+ if !isEnabled { return false }
141
+ return $0?.type == .scrollWheel
142
+ }
143
.compactMap { $0 }
- .filter { isEnabled && $0.type == .scrollWheel }
144
.sink { event in
145
guard isPinnedToBottom else { return }
146
let delta = event.deltaY
Pro
0 commit comments