-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNmobile] Scroll to new-block indicator #31144
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f055d53
First stab at scrolling to the indicator
hypest 9d6145c
Use insertionPoint selector and scroll in componentDidUpdate
hypest f6c62d9
Remove unneeded assignment
hypest a596571
Slice array instead of conditional for limiting accumulation
hypest 76b2594
Keep clientId list so block removals/additions can be correctly calcu…
hypest 371c5e6
Remove unneeded assignment
hypest 9400f23
Remove verbose property passing
hypest 7862e89
Also scroll on iOS
hypest 4da01c9
Use scrollToOffset always on Android to simplify code
hypest 40ccf72
No need for getItemLayout anymore
hypest 1bc5669
Fix innerblocks case to not scroll at all
hypest 68e5118
Set list footer height to a ratio of the list height
hypest d8a9258
Simplify property passing
hypest 7ab5f03
Rewrite to please the linter
hypest c396049
Merge branch 'trunk' into rnmobile/1672-scroll-to-new-block-indicator
hypest c2856b5
Accessibility name included in parents so, grab the innermost
hypest bfa7db7
Merge branch 'trunk' into rnmobile/1672-scroll-to-new-block-indicator
hypest 718dee1
Remove shouldFlatListPreventAutomaticScroll, always scrolling now
hypest 87456cf
Merge branch 'trunk' into rnmobile/1672-scroll-to-new-block-indicator
hypest 1a3e811
Add relevant entry to the changelog
hypest 00ee6ad
Add some informational inline comments
hypest 6c6f562
Fix lint issue
hypest e096eb3
Need to re-enable the lint check at some point
hypest 40f86fb
Merge branch 'trunk' into rnmobile/1672-scroll-to-new-block-indicator
hypest 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
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -63,7 +63,7 @@ | |
} | ||
|
||
.blockListFooter { | ||
height: 80px; | ||
min-height: 80px; | ||
} | ||
|
||
.defaultBlock { | ||
|
This file contains 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 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 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 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
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.
It would be ideal to only apply this offset when the inserter is opened and animate it to avoid a jump, but I would imagine that might be difficult to accomplish. I wanted to provide the thought nonetheless. Maybe an opportunity for future enhancement.