diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-10-08 19:02:35 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-10-08 19:02:35 -0400 |
| commit | 29cdf0d66df3e38408f69ac8225b4d59397ee2e6 (patch) | |
| tree | d45b62cb180929cf9cd04415ab6927012f37ccb4 /src/Utils.ts | |
| parent | 121cbc76bf971e688398533b303e32d637265364 (diff) | |
fixes for text selection in pdfs to be less jumpy and to work through other annotations.
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(); |
