-
Notifications
You must be signed in to change notification settings - Fork 76
Adds skipOverflowHiddenElements
boolean option
#225
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
Merged
stipsan
merged 1 commit into
scroll-into-view:master
from
icd2k3:add-type-hidden-to-can-overflow-check
May 11, 2018
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adds skipOverflowHiddenElements boolean option + docs
chore(deps): update dependency lint-staged to v7.1.0 (#224) chore(deps): update dependency lint-staged to v7.1.0 (#224) fix(typings): Improve TS typings (#223) * prepare to add flowtype tests * improve the quality of the typescript libdefs * Improve typescript declarations * improve further * update readme etc * Update index.ts chore(deps): update dependency flowgen to v1.2.2 (#226) fix(compute): custom behavior lack block and inline defaults (#227) fix(compute): custom behavior missing block and inline defaults chore(deps): update dependency semantic-release to v15.4.0 (#229) chore(readme): I think about Jest… a LOT! (#230)
- Loading branch information
commit 1fed7e8be59fe49345751000c5adc834058ca478
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,16 @@ export type ScrollBehavior = 'auto' | 'instant' | 'smooth' | |
export type ScrollLogicalPosition = 'start' | 'center' | 'end' | 'nearest' | ||
// This new option is tracked in this PR, which is the most likely candidate at the time: https://github.com/w3c/csswg-drafts/pull/1805 | ||
export type ScrollMode = 'always' | 'if-needed' | ||
// New option that skips auto-scrolling all nodes with overflow: hidden set | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good work on making sure things are well documented 👍 |
||
// See FF implementation: https://hg.mozilla.org/integration/fx-team/rev/c48c3ec05012#l7.18 | ||
export type SkipOverflowHiddenElements = boolean | ||
|
||
export interface Options { | ||
block?: ScrollLogicalPosition | ||
inline?: ScrollLogicalPosition | ||
scrollMode?: ScrollMode | ||
boundary?: CustomScrollBoundary | ||
skipOverflowHiddenElements?: SkipOverflowHiddenElements | ||
} | ||
|
||
// Custom behavior, not in any spec | ||
|
Empty file.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice level of detail on the documentation here 😄