diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-08 19:33:58 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-08 19:33:58 -0400 |
commit | 12e54a87f3eba2285ecc659f48fc023ccc146c3e (patch) | |
tree | f678aebf5b64152246955c36d6e8880ea796476e /src/Utils.ts | |
parent | 04a881bd949341a1cc6580d72527532df8f5bb8e (diff) | |
parent | 29cdf0d66df3e38408f69ac8225b4d59397ee2e6 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 489de3b50..9a2f01f80 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -320,7 +320,7 @@ const easeInOutQuad = (currentTime: number, start: number, change: number, durat return (-change / 2) * (newCurrentTime * (newCurrentTime - 2) - 1) + start; }; -export default function smoothScroll(duration: number, element: HTMLElement, to: number) { +export function smoothScroll(duration: number, element: HTMLElement, to: number) { const start = element.scrollTop; const change = to - start; const startDate = new Date().getTime(); |