From e84e1867c7eba56d370a351d2dde2c7671739d93 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Thu, 3 Jan 2019 14:22:43 +0100 Subject: [PATCH] calculate the Indicator position with scroll offset --- .../TopNavigationAccount/components/Indicator/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Wallet/components/TopNavigationAccount/components/Indicator/index.js b/src/views/Wallet/components/TopNavigationAccount/components/Indicator/index.js index 0e5eda43..f3cf54b4 100644 --- a/src/views/Wallet/components/TopNavigationAccount/components/Indicator/index.js +++ b/src/views/Wallet/components/TopNavigationAccount/components/Indicator/index.js @@ -76,7 +76,7 @@ class Indicator extends PureComponent { const active = wrapper.querySelector('.active'); if (!active) return; const bounds = active.getBoundingClientRect(); - const left = bounds.left - wrapper.getBoundingClientRect().left; + const left = bounds.left - wrapper.getBoundingClientRect().left + wrapper.scrollLeft; const { state } = this; if (state.style.left !== left) {