diff options
author | 2021-01-16 22:28:02 +0300 | |
---|---|---|
committer | 2021-01-16 22:28:02 +0300 | |
commit | 74e1cf9f3be47b85a8a29c46786b4a839f977eee (patch) | |
tree | 780d0e902e65d88effbab2a965fa2dc9a13d2a73 /src/components/ScrollToTop.tsx | |
parent | Lock textarea resizing to vertical (diff) |
Polyfills Smooth Scroll
Pollyfills smooth scroll on the scroll to top button.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/components/ScrollToTop.tsx')
-rw-r--r-- | src/components/ScrollToTop.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/ScrollToTop.tsx b/src/components/ScrollToTop.tsx index 4888dec..2c5e9ca 100644 --- a/src/components/ScrollToTop.tsx +++ b/src/components/ScrollToTop.tsx @@ -3,6 +3,9 @@ import { jsx, css } from "@emotion/react"; import React from "react"; import colors from "../colors"; +import smoothscroll from "smoothscroll-polyfill"; +smoothscroll.polyfill(); + const styles = css` width: 2.5rem; height: 2.5rem; |