Skip to content

Commit ed58ebb

Browse files
authored
fix(6017): Fixes ui-grid-viewport scroll issue in chrome v56 (#6125)
Chrome v56 introduced a new feature called "scroll anchoring" which causes the scroll position to update if element content above the current scroll position has changed. Since ui-grid-viewport updates the margin of the first line whenever a user is scrolling, scroll anchoring will cause it to get into a scroll loop and scroll indefinitely (i.e. scroll to the end of the grid). Credit to @Joel-Kornbluh
1 parent ecd7f72 commit ed58ebb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/less/body.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
overflow-y: scroll;
1919
-webkit-overflow-scrolling: touch;
2020

21+
// overflow-anchor is a new feature/bug in chrome 56. See https://www.chromestatus.com/feature/5700102471548928
22+
// It causes ui-grid-viewport to scroll indefinitely. See https://github.com/angular-ui/ui-grid/issues/6017
23+
overflow-anchor: none;
24+
2125
&:focus {
2226
outline: none !important;
2327
}
@@ -73,4 +77,4 @@
7377
right: 0;
7478
opacity: 0.66;
7579
}
76-
}
80+
}

0 commit comments

Comments
 (0)