Skip to content

Make viewport getScrollLeft return 0#7492

Merged
muxin merged 1 commit intoampproject:masterfrom
muxin:viewport-getScrollLeft
Feb 13, 2017
Merged

Make viewport getScrollLeft return 0#7492
muxin merged 1 commit intoampproject:masterfrom
muxin:viewport-getScrollLeft

Conversation

@muxin
Copy link
Copy Markdown
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 force-pushed the viewport-getScrollLeft branch from 8b469f9 to ceb4e00 Compare February 13, 2017 22:01
@muxin muxin force-pushed the viewport-getScrollLeft branch from ceb4e00 to 260042d Compare February 13, 2017 22:03
@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.

2 participants