From: Mathieu Suen Date: Mon, 10 Oct 2022 12:50:27 +0000 (+0200) Subject: NO-JIRA Docuement RTL and deprecated in house scrolling X-Git-Tag: 9.7.0.61563~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62de8290e2d110d95d2e256e2ff4f9f0aeffe854;p=sonarqube.git NO-JIRA Docuement RTL and deprecated in house scrolling --- 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: {