nvda
2cc3aa4d - MS Word with UIA: ensure document is appropriately scrolled when programmatically setting the caret (#12851)

Commit
4 years ago
MS Word with UIA: ensure document is appropriately scrolled when programmatically setting the caret (#12851) In Microsoft Word with UIA enabled, the caret may fail to move to the right position when updated programmatically, if the new position is currently off-screen. Specifically: • When performing say all and reading past the current page, the document does not scroll and the caret ends up at a random position on the current page. • In Browse mode, performing a say all, navigating with quick nav, or just moving the arrow keys such that the browse mode cursor moves off the current page, the real (focus mode) caret ends up at a random position on the current page. Description of how this pull request fixes the issue: WordDocumentTextInfo's updateCaret and updateSelection methods now ensure that the document is currently scrolled such that the text range is visible on screen.
Parents
Loading