Answer the question
In order to leave comments, you need to log in
There is a sidebar. There is no smooth scrolling + body is spinning under it. How to fix?
Welcome all! I ran into such a problem - there is a sidebar that slides out on top of the body at 100% width:
.fullwidth_sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 120;
top: 0;
left: 0;
color: #fff;
background-color: #303030;
overflow-x: hidden;
transition: 0.15s;
}
<body class="body_fixed">
.body_fixed {
position: fixed;
top: 0px;
width: 100%;
height: 100%;
}
Answer the question
In order to leave comments, you need to log in
According to the description, this is clearly iOS Safari.
Add this to your sidebar:
Then there will be inertial scrolling like on body. Unfortunately, this thing has bugs (especially in combination with fixed: jumps, blinking, unwanted dragging of elements), but Apple does not give other solutions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question