Blocks: Improve block mover scroll position preserve #3595
Labels
[Feature] Blocks
Overall functionality of blocks
[Type] Bug
An existing feature does not function as intended
Related: #3546
The current behavior for preserving scroll offset when moving blocks checks whether the current block is selected:
gutenberg/editor/components/block-list/block.js
Lines 120 to 128 in c52e0b4
This means that when merely hovering a block and using the Block Mover arrows to rearrange the block, scroll will not be preserved on the first click. Subsequent clicks will preserve position because the block is automatically selected when moved.
We should consider...
isSelected
takes effect before deciding to assignthis.previousOffset
The text was updated successfully, but these errors were encountered: