Skip to content

lock body scroll when showing overlay #58

Open

Description

@pgherveou

I hard coded something like that in my local branch, to lock the scrolling when showing the ovelay
Do you think this is an option we should expose to the api ?

  Overlay.prototype.show = function(){
    $('body').css('overflow', 'hidden');
   ...
  };
  Overlay.prototype.hide = function(){
    $('body').css('overflow', '');
   ...
  };

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions