-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] elevate scrollEnabled prop to BlockList #21505
Conversation
@@ -140,7 +139,7 @@ export class BlockList extends Component { | |||
! isRootList && styles.overflowVisible, | |||
] } | |||
horizontal={ horizontal } | |||
scrollEnabled={ scrollEnabled } | |||
scrollEnabled={ isRootList } |
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.
This one should lock scrolling of nested InnerBlocks
. However I would like to make sure if it do not block something that we don't want to block.
The reason to introduce that prop lays in Column block PR . In nested structure there was possibility to drag content of Column or Group block.
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.
if you comment this line completely you will notice the behaviour presented on GIF in the description
Size Change: 0 B Total Size: 839 kB ℹ️ View Unchanged
|
…levate-scrollEnabled
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.
Checked and everything works fine
Description
This PR moves calculation of scrollEnabled prop to BLockList instead of passing it from blocks.
Please also refer to:
Related gutenberg-mobile PR
Related gutenberg-mobile issue
How has this been tested?
initial-html
Screenshots
This PR prevents from below scenario. I have caught this during work on Columns block and I didnt see any other place that it can happens. However it might happens in the future in other block as well (most probably for block in horizontal layout)
Types of changes
Refactor
Checklist: