Skip to content

Commit

Permalink
Set dragging always enabled for block toolbar
Browse files Browse the repository at this point in the history
The block toolbar is only visible when the block is selected so it's safe to allow dragging in all cases, as it won't affect other UI elements.
  • Loading branch information
fluiddot committed May 6, 2022
1 parent 998b81e commit adbc1d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ class BlockListBlock extends Component {
blockWidth={ blockWidth }
anchorNodeRef={ this.anchorNodeRef.current }
isFullWidth={ isFullWidthToolbar }
draggingEnabled={ draggingEnabled }
draggingClientId={ draggingClientId }
/>
) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const BlockMobileToolbar = ( {
blockWidth,
anchorNodeRef,
isFullWidth,
draggingEnabled,
draggingClientId,
} ) => {
const [ fillsLength, setFillsLength ] = useState( null );
Expand Down Expand Up @@ -77,8 +76,8 @@ const BlockMobileToolbar = ( {
) }

<BlockDraggable
enabled={ draggingEnabled }
clientId={ draggingClientId }
clientId={ clientId }
draggingClientId={ draggingClientId }
>
{ () => <View style={ styles.spacer } /> }
</BlockDraggable>
Expand Down

0 comments on commit adbc1d6

Please sign in to comment.