summaryrefslogtreecommitdiff
path: root/ext/js/accessibility/google-docs-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/accessibility/google-docs-util.js')
-rw-r--r--ext/js/accessibility/google-docs-util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/accessibility/google-docs-util.js b/ext/js/accessibility/google-docs-util.js
index e50ba652..12f2db24 100644
--- a/ext/js/accessibility/google-docs-util.js
+++ b/ext/js/accessibility/google-docs-util.js
@@ -87,7 +87,7 @@ class GoogleDocsUtil {
const range = this._getRangeWithPoint(content, x, y, normalizeCssZoom);
this._setImportantStyle(textStyle, 'pointer-events', 'none');
this._setImportantStyle(textStyle, 'opacity', '0');
- return new TextSourceRange(range, '', svgText, element);
+ return TextSourceRange.createFromImposter(range, svgText, element);
}
static _getRangeWithPoint(textNode, x, y, normalizeCssZoom) {
@@ -110,7 +110,7 @@ class GoogleDocsUtil {
}
}
range.setStart(textNode, start);
- range.setEnd(textNode, end);
+ range.setEnd(textNode, start);
return range;
}