Skip to content

Instantly share code, notes, and snippets.

@gwagroves
Created October 7, 2016 07:48
Show Gist options
  • Select an option

  • Save gwagroves/a9f25a6b68eca31a1d431baa547a4c02 to your computer and use it in GitHub Desktop.

Select an option

Save gwagroves/a9f25a6b68eca31a1d431baa547a4c02 to your computer and use it in GitHub Desktop.

Revisions

  1. gwagroves created this gist Oct 7, 2016.
    8 changes: 8 additions & 0 deletions no-scroll.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    /* http://stackoverflow.com/a/19054794/698511 */
    body.no-scroll {
    left: 0;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    top: 0;
    width: 100%;
    }