-
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
Don't automatically select blocks when entering zoom out #61433
Conversation
Size Change: -119 B (-0.01%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
1e32b15
to
cdbd466
Compare
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.
I think moving selection from a block to the containing section when engaging zoom out enhances the assembling experience, but selecting the bottom of the document is disorientating and serves no purpose since appending is the default if there is no selection.
dispatch.selectBlock( lastSectionClientId ); | ||
} | ||
} else { | ||
dispatch.selectBlock( lastSectionClientId ); |
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.
I think we should remove only this branch
); | ||
dispatch.selectBlock( rootClientId ); | ||
} else { | ||
// If there's no block selected and no sectionRootClientId, select the last root 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.
And this branch.
Let's close in favour of #61484 |
What?
Now that we have a section root client id set, we should remove this code that selects a block.
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast