Skip to content

Commit

Permalink
Canvas: Fix broken zoom behaviour (#13566)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuragVasanwala committed Mar 26, 2024
1 parent 9463d46 commit 3046dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/story-editor/src/components/canvas/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
};
Expand Down

0 comments on commit 3046dc1

Please sign in to comment.