Repository navigation
Better scrolling on mobile devices - #311
Merged
Merged
Conversation
jsantell
previously approved these changes
Jan 28, 2019
| } | ||
|
|
||
| const rootNode = this.element.getRootNode() as Document | ShadowRoot; | ||
| return rootNode.activeElement === this.element; |
Contributor
There was a problem hiding this comment.
Maybe should ensure that the interaction policy is 'allow-when-focused' (had to check SmoothControls to see if these were the only two valid tokens for interaction policy)
cdata
force-pushed
the
better-mobile-scrolling
branch
from
January 28, 2019 17:47
92baafb to
47eb10f
Compare
jsantell
self-requested a review
January 28, 2019 18:42
jsantell
approved these changes
Jan 28, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is a follow up to #288 . One of the primary goals of that change was to enable better interaction with pages containing
<model-viewer>while scrolling. Due to a bug in the change, it turned out that mobile devices (or any that relied on touch input, really), still had a poor default interaction experience.This change address scrolling on devices with touch input. Now all interaction (including via touch input) requires focus by default:
Fixes #75