Changed tracking from center to top left coordinates#20313
Conversation
|
I'v just given a try. Currently, the top left corner of the focus is centered. This means that the focused object will remain in the bottom right quarter of the screen. IMO, keeping a quite simple algo, we can be nearer to what Windows Magnifier does and minimize view movements if we do the following:
You could use the same margins as the one used for "Border" tracking algo. |
|
yeah we could, my concern with that is that it not really centered anymore, or maybe, just a naming issue. I'm don't know If what I said made sense Maybe an algo to calculate the best position could be nice, but I would require more feedback on what it should do |
|
IMO it would be better if tracking mode could be configurable separately, per tracking type. For reference in Windows Magnifier:
I understand that we cannot separate all tracking modes. But separating:
Maybe it's too complex to start with. But IMO, if we keep a signle tracking mode for now (center/borders/relative), it should apply to mouse cursor and text caret (including review), not to focus / nav object. |
Link to issue number:
Fixes #20196
Summary of the issue:
The focus manager would not take into account the width or height of the object and returned their center, this could lead to out of Magnified view magnifier focus
Description of user facing changes:
user will now see the top left of the object as first focus
Description of developer facing changes:
focus manager no longer calculate the center of the focused object
Description of development approach:
return raw top left value instead of calculating the center
Testing strategy:
manual
Known issues with pull request:
Had to rewrite a typo in settings dialog that was breaking setting changes
Code Review Checklist: