Skip to content

Commit

Permalink
fix(www): sidebar scrolling shouldn't move main content (#24438)
Browse files Browse the repository at this point in the history
* Previously scrolling or swiping inside the navigation
sidebar could result in main content moving. Fixed for
most browsers with overflow-behavior: contain

Resolves #24255

Co-authored-by: gatsbybot <[email protected]>
  • Loading branch information
alexpyzhianov and gatsbybot authored Jun 10, 2020
1 parent b554bd5 commit ad47c24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/src/components/sidebar/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export default function Sidebar({
border: 0,
display: `block`,
overflowY: `auto`,
overscrollBehavior: `contain`,
transition: t =>
`opacity ${t.transition.speed.default} ${t.transition.curve.default}`,
zIndex: 10,
Expand Down

0 comments on commit ad47c24

Please sign in to comment.