On my site when opening a modal window, a second scroll appears, how to remove it? And how to fix the site twitching when opening modal windows?

The fact is that I wanted to fix the problem of modal windows (jerking a site when opening a modal window). I put a forced scroll:

html{ overflow-y: scroll; } 

The twitching disappeared, a second scroll appeared next to the main one.

    1 answer 1

    Probably, one scroll belongs to html , and the second - body .

    I can assume that somewhere something is written like html, body { height:100% } . Try to change the html on the body in your version of the question.

    For a more specific response data is not enough.