Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make viewport getScrollLeft return 0 #7492

Merged
merged 1 commit into from Feb 13, 2017

Conversation

muxin
Copy link
Contributor

@muxin muxin commented Feb 10, 2017

Fix #7355
Since we have overflow-x: hidden on html (in natural and ios-embed binding) and #i-amphtml-wrapper (in ios-embed-wrapper binding), the scrollLeft will always be 0.
Also modified test cases that return non-zero value for getScrollLeft which couldn't happen in reality.

@muxin muxin merged commit 00e7fbb into ampproject:master Feb 13, 2017
@muxin muxin deleted the viewport-getScrollLeft branch February 13, 2017 23:09
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Feb 14, 2017
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
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.

None yet

2 participants