]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA Docuement RTL and deprecated in house scrolling
authorMathieu Suen <mathieu.suen@sonarsource.com>
Mon, 10 Oct 2022 12:50:27 +0000 (14:50 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 12 Oct 2022 20:03:43 +0000 (20:03 +0000)
server/sonar-web/src/main/js/helpers/scrolling.ts

index 5d5907fea9ebf38498b071f4844e3c16134e4d20..2b80c07da7a11124bea7e4a66f4c1bd0b3aab818 100644 (file)
@@ -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: {