Control focus and scroll in Word office JS add-in's
Suggestion: Ability to Control Scrolling Behavior in Word JavaScript API
Problem:
Currently, using Range.select() in the Word JavaScript API automatically scrolls the document to bring the selected range into view. This behavior cannot be controlled or disabled.
In many real-world scenarios, this is problematic. Our users often work with large Word documents and long ranges or selections. Any programmatic selection — for example, when updating or analyzing a range — causes Word to jump to another part of the document. This disrupts the user’s workflow and creates a frustrating experience.
Proposed Improvement:
Add an option to control scrolling behavior when selecting or manipulating ranges. For example:
range.select({ scroll: false });
This would allow developers to programmatically select or update ranges without forcing Word to scroll to that location.
Impact:
Providing control over scrolling would greatly improve usability for scenarios involving background processing, automated edits, or analytical operations in large documents, where visual focus should remain undisturbed