aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2022-10-10 14:50:27 +0200
committersonartech <sonartech@sonarsource.com>2022-10-12 20:03:43 +0000
commit62de8290e2d110d95d2e256e2ff4f9f0aeffe854 (patch)
treea063cd87497234ffe2e7bdd655fd15e3f3d92c18
parent4494b976a6b79c27f974e27e9cbc51343add47de (diff)
downloadsonarqube-62de8290e2d110d95d2e256e2ff4f9f0aeffe854.tar.gz
sonarqube-62de8290e2d110d95d2e256e2ff4f9f0aeffe854.zip
NO-JIRA Docuement RTL and deprecated in house scrolling
-rw-r--r--server/sonar-web/src/main/js/helpers/scrolling.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/scrolling.ts b/server/sonar-web/src/main/js/helpers/scrolling.ts
index 5d5907fea9e..2b80c07da7a 100644
--- a/server/sonar-web/src/main/js/helpers/scrolling.ts
+++ b/server/sonar-web/src/main/js/helpers/scrolling.ts
@@ -80,6 +80,9 @@ function smoothScrollLeft(parent: Element | Window, position: number) {
return smoothScroll(position, scroll.x, position => scrollElement(parent, position, scroll.y));
}
+/**
+ * @deprecated use scrollIntoView instead
+ */
export function scrollToElement(
element: Element,
options: {
@@ -121,6 +124,9 @@ export function scrollToElement(
}
}
+/**
+ * @deprecated use scrollIntoView instead
+ */
export function scrollHorizontally(
element: Element,
options: {