MaiDeveloper

#CSS

Smooth scroll on iOS overflow element

This is a trick to fix/enable smooth scrolling for web pages on iOS.

.content {
  width: 300px;
  height: 200px;

  overflow-y: scroll; /* has to be scroll, not auto */
  -webkit-overflow-scrolling: touch;
}


Mike Mai
Mike Mai   Brooklyn, New York
I am a full-stack web developer. I love to learn cutting-edge technology and solve problems. I also like photography and graphic designs.