From 3046dc13714e09706eee0a03e4958390f8e581d2 Mon Sep 17 00:00:00 2001 From: Anurag Vasanwala <75766877+AnuragVasanwala@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:35:19 +0530 Subject: [PATCH] Canvas: Fix broken zoom behaviour (#13566) --- packages/story-editor/src/components/canvas/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/story-editor/src/components/canvas/layout.js b/packages/story-editor/src/components/canvas/layout.js index 2eb7810a9db0..dfb5ea75f78a 100644 --- a/packages/story-editor/src/components/canvas/layout.js +++ b/packages/story-editor/src/components/canvas/layout.js @@ -358,7 +358,7 @@ function useLayoutParamsCssVars() { '--viewport-width-px': `${viewportWidth}px`, '--viewport-height-px': `${viewportHeight}px`, '--overflow-x': hasHorizontalOverflow ? 'scroll' : 'visible', - '--overflow-y': hasVerticalOverflow ? 'scroll' : 'visible', + '--overflow-y': hasVerticalOverflow ? 'scroll' : 'auto', '--scroll-left-px': `${-scrollLeft}px`, '--scroll-top-px': `${-scrollTop}px`, };