Skip to content

lock body scroll when showing overlay #58

@pgherveou

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', '');
   ...
  };

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