🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(app): fix scrolling behavior in chrome v144 and later (#11652)
Nimar2e58620f6e20
diff --git a/web/src/components/editor/CodeMirrorEditor.tsx b/web/src/components/editor/CodeMirrorEditor.tsxindex 06baedd812..a38a8b11b5 100644--- a/web/src/components/editor/CodeMirrorEditor.tsx+++ b/web/src/components/editor/CodeMirrorEditor.tsx@@ -211,11 +211,6 @@ export function CodeMirrorEditor({"&.cm-focused": {outline: "none",},- // Override global overscroll-behavior-y: none to allow scroll propagation- // to parent. Required for Chrome 144+ (see globals.css).- ".cm-scroller": {- overscrollBehavior: "auto",- },}),// Hide gutter when lineNumbers is false// Fix missing gutter border@@ -254,9 +249,7 @@ export function CodeMirrorEditor({}}onBlur={onBlur}className={cn(- // overscroll-y-auto overrides global overscroll-behavior-y: none to allow- // scroll propagation to parent. Required for Chrome 144+ (see globals.css).- "overflow-hidden overflow-y-auto overscroll-y-auto rounded-md border text-xs",+ "overflow-hidden overflow-y-auto rounded-md border text-xs",className,)}editable={editable}diff --git a/web/src/components/layouts/app-layout/components/ResizableContent.tsx b/web/src/components/layouts/app-layout/components/ResizableContent.tsxindex ca359481ee..75862d8d87 100644--- a/web/src/components/layouts/app-layout/components/ResizableContent.tsx+++ b/web/src/components/layouts/app-layout/components/ResizableContent.tsx@@ -59,9 +59,7 @@ export function ResizableContent({ children }: PropsWithChildren) {if (!isDesktop) {return (<>- <main className="h-full flex-1" style={{ overscrollBehaviorY: "none" }}>- {children}- </main>+ <main className="h-full flex-1">{children}</main><Drawer open={open} onOpenChange={setOpen} forceDirection="bottom"><DrawerContent@@ -92,10 +90,7 @@ export function ResizableContent({ children }: PropsWithChildren) {return (<ResizablePanelGroup direction="horizontal" className="flex h-full w-full"><ResizablePanel ref={mainPanelRef} defaultSize={100} minSize={30}>- <main- className="relative h-full w-full overflow-scroll"- style={{ overscrollBehaviorY: "none" }}- >+ <main className="relative h-full w-full overflow-scroll">{children}</main></ResizablePanel>diff --git a/web/src/styles/globals.css b/web/src/styles/globals.cssindex a20aba0842..4a5884ec5a 100644--- a/web/src/styles/globals.css+++ b/web/src/styles/globals.css@@ -186,6 +186,11 @@@layer base {* {@apply border-border;+ }++ html,+ body {+ /* Prevent pull-to-refresh and rubber-banding on the page level only */overscroll-behavior-y: none;}