Skip to content
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

Fix cell focusing logic #1352

Merged
merged 3 commits into from
Oct 31, 2018
Merged

Fix cell focusing logic #1352

merged 3 commits into from
Oct 31, 2018

Conversation

amanmahajan7
Copy link
Contributor

@amanmahajan7 amanmahajan7 commented Oct 30, 2018

Currently when a cell is selected, the scroll position is preserved before the focus and reapplied after the cell is focused. This is unnecessary and can cause janky behavior. The correct way is to focus on the SelectionMask element instead of the container element.

Thanks to @MayhemYDG for the tip.

Focus the selection mask instead of parent node
@malonecj malonecj merged commit 7b5ad6f into master Oct 31, 2018
@nstepien nstepien deleted the am-improve-editor-focus branch October 31, 2018 15:12
malonecj pushed a commit that referenced this pull request Nov 15, 2018
* Remove the hack to preserve scroll position
Focus the selection mask instead of parent node

* Fix unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants