Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

"Locking" scroll while preserving scroll location #6

Open
quoid opened this issue Nov 23, 2015 · 0 comments
Open

"Locking" scroll while preserving scroll location #6

quoid opened this issue Nov 23, 2015 · 0 comments

Comments

@quoid
Copy link
Owner

quoid commented Nov 23, 2015

The Problem:

overflow: hidden does not work on iOS devices at the element level.

Solutions:

  1. Assign overflow: hidden to the html and body class as well.
    Issues: if you overflow: hidden on the body and html element; the moment you trigger those properties/rules, the browser scrolls to the ‘top’.

  2. Using jQuery (unbind - touchmove) - currently in use
    Issues: you can unbind the touch move on the element, but child element can scroll elements behind themselves

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant