Skip to content

add overflow:hidden to html to disable scroll#6

Open
patrick-wc wants to merge 1 commit into
callmenick:masterfrom
patrick-wc:master
Open

add overflow:hidden to html to disable scroll#6
patrick-wc wants to merge 1 commit into
callmenick:masterfrom
patrick-wc:master

Conversation

@patrick-wc
Copy link
Copy Markdown

On Chrome and Safari I noticed they don't respect body overflow: hidden unless you also apply it to the HTML element. This updates the code to do that, so that users can't carry on swiping down when a menu is open and they reach the bottom.

On Chrome and Safari I noticed they don't respect body overflow: hidden unless you also apply it to the HTML element. This updates the code to do that.
@BlackSkorpio
Copy link
Copy Markdown

Thnx man!
Implemented this on my Koken theme and looks solid: no complains so far ;)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants