Skip to content

Commit ae287ab

Browse files
authored
fix: Fix scrolling for some users on Windows 10 + Chrome 129 (#4163)
Closes #4128 ## Description should fix both: style panel and canvas scrolling ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent a0bce72 commit ae287ab

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

apps/builder/app/builder/features/workspace/workspace.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const workspaceStyle = css({
2424
const canvasContainerStyle = css({
2525
position: "absolute",
2626
transformOrigin: "0 0",
27+
// We had a case where some Windows 10 + Chrome 129 users couldn't scroll iframe canvas.
28+
willChange: "transform",
2729
});
2830

2931
const useMeasureWorkspace = () => {

packages/design-system/src/components/scroll-area.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const ScrollAreaRoot = styled(Root, {
66
boxSizing: "border-box",
77
overflow: "hidden",
88
display: "grid",
9+
// We had a case where some Windows 10 + Chrome 129 users couldn't scroll style panel.
10+
willChange: "transform",
911
});
1012

1113
const ScrollAreaThumb = styled(Thumb, {

0 commit comments

Comments
 (0)