Skip to content

Commit

Permalink
monaco: Disable scrollView.bounces #484
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed Feb 5, 2024
1 parent fe99b91 commit 2023950
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion CodeApp/Containers/MainScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private struct MainView: View {
}
StatusBar()
.environmentObject(extensionManager.statusBarManager)
.frame(width: geometry.size.width, height: 20)
.frame(width: geometry.size.width, height: 24.5)
}

HStack {
Expand Down
1 change: 0 additions & 1 deletion CodeApp/Managers/BottomBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ struct StatusBar: View {
.font(.system(size: 12))
.foregroundColor(Color.init(id: "statusBar.foreground"))
.background(Color.init(id: "statusBar.background"))
.frame(height: 20)
}
}
1 change: 0 additions & 1 deletion CodeApp/Managers/MonacoEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ struct MonacoEditor: UIViewRepresentable {

func makeUIView(context: Context) -> WKWebView {
monacoWebView.isOpaque = false
monacoWebView.scrollView.bounces = false
monacoWebView.customUserAgent =
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) CodeApp"
monacoWebView.contentMode = .scaleToFill
Expand Down

0 comments on commit 2023950

Please sign in to comment.