From 57fdff8d2822cd23e47df9953922c2341eb33e99 Mon Sep 17 00:00:00 2001 From: Jakub Binda Date: Thu, 9 Apr 2020 15:41:08 +0200 Subject: [PATCH] elevate scrollEnabled prop to BlockList --- .../block-editor/src/components/block-list/index.native.js | 3 +-- .../block-editor/src/components/inner-blocks/index.native.js | 2 -- packages/block-library/src/column/edit.native.js | 1 - packages/block-library/src/columns/edit.native.js | 1 - packages/block-library/src/group/edit.native.js | 3 --- 5 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/block-editor/src/components/block-list/index.native.js b/packages/block-editor/src/components/block-list/index.native.js index 830f92559b5cea..7998b6848ed4a8 100644 --- a/packages/block-editor/src/components/block-list/index.native.js +++ b/packages/block-editor/src/components/block-list/index.native.js @@ -99,7 +99,6 @@ export class BlockList extends Component { isReadOnly, isRootList, horizontal, - scrollEnabled, shouldShowInsertionPointBefore, shouldShowInsertionPointAfter, marginVertical = styles.defaultBlock.marginTop, @@ -140,7 +139,7 @@ export class BlockList extends Component { ! isRootList && styles.overflowVisible, ] } horizontal={ horizontal } - scrollEnabled={ scrollEnabled } + scrollEnabled={ isRootList } contentContainerStyle={ horizontal && styles.horizontalContentContainer } diff --git a/packages/block-editor/src/components/inner-blocks/index.native.js b/packages/block-editor/src/components/inner-blocks/index.native.js index d462fa40d04865..94985621c0feee 100644 --- a/packages/block-editor/src/components/inner-blocks/index.native.js +++ b/packages/block-editor/src/components/inner-blocks/index.native.js @@ -114,7 +114,6 @@ class InnerBlocks extends Component { renderAppender, __experimentalMoverDirection, horizontal, - scrollEnabled, contentResizeMode, contentStyle, onAddBlock, @@ -137,7 +136,6 @@ class InnerBlocks extends Component { __experimentalMoverDirection } horizontal={ horizontal } - scrollEnabled={ scrollEnabled } contentResizeMode={ contentResizeMode } contentStyle={ contentStyle } onAddBlock={ onAddBlock } diff --git a/packages/block-library/src/column/edit.native.js b/packages/block-library/src/column/edit.native.js index d10d2374d0fb77..70d519ca2e78c6 100644 --- a/packages/block-library/src/column/edit.native.js +++ b/packages/block-library/src/column/edit.native.js @@ -64,7 +64,6 @@ function ColumnEdit( { ] } > 1 ? 'horizontal' : undefined } horizontal={ true } - scrollEnabled={ false } allowedBlocks={ ALLOWED_BLOCKS } contentResizeMode="stretch" onAddBlock={ onAddNextColumn } diff --git a/packages/block-library/src/group/edit.native.js b/packages/block-library/src/group/edit.native.js index 6545600f939040..257ba8b4e628c7 100644 --- a/packages/block-library/src/group/edit.native.js +++ b/packages/block-library/src/group/edit.native.js @@ -36,9 +36,6 @@ function GroupEdit( { hasInnerBlocks, isSelected, getStylesFromColorScheme } ) { );