Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js |
index d462777555687e16f85209c49200503fda325c5f..bdc3278194c8cb2089c30d4b54c49f2ab13a9b22 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js |
@@ -252,6 +252,16 @@ DesktopAutomationHandler.prototype = { |
}, |
/** |
+ * Handle updating the active indicator when the document scrolls. |
+ * @override |
+ */ |
+ onScrollPositionChanged: function(evt) { |
+ var currentRange = global.backgroundObj.currentRange; |
+ if (currentRange) |
+ new Output().withLocation(currentRange, null, evt.type).go(); |
+ }, |
+ |
+ /** |
* Create an editable text handler for the given node if needed. |
* @param {Object} node |
*/ |