From b0ebd49a30b01a21c9979020f9013dc11fe96453 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 23 May 2025 04:57:43 +0000 Subject: [PATCH 1/2] Initial plan for issue From e9e0c663746c1cd7ff983b316683760be9407020 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 23 May 2025 05:02:13 +0000 Subject: [PATCH 2/2] Fix text wrapping scrolling issue in Peek preview Co-authored-by: lei9444 <39758135+lei9444@users.noreply.github.com> --- src/Monaco/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Monaco/index.html b/src/Monaco/index.html index 54f7524225bf..a0bfaca4929c 100644 --- a/src/Monaco/index.html +++ b/src/Monaco/index.html @@ -112,10 +112,14 @@ // Render scrollbar automatically vertical: 'auto', horizontal: 'auto', + + // Allow scrolling on both axes simultaneously (fixes trackpad scrolling issue) + scrollPredominantAxis: false, }, stickyScroll: { enabled: stickyScroll }, fontSize: fontSize, - wordWrap: (wrap ? 'on' : 'off') // Word wraps + wordWrap: (wrap ? 'on' : 'off'), // Word wraps + mouseWheelScrollSensitivity: 1 // Standard scrolling sensitivity }); window.onresize = () => { editor.layout();