Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

ios prevent scroll css

.no-scroll {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 5;
  touch-action:none;
}
/*This div will cover the screen and prevent you from scrolling while
it's visible.*/
 
PREVIOUS NEXT
Tagged: #ios #prevent #scroll #css
ADD COMMENT
Topic
Name
3+7 =