aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ScrollToTop.tsx
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-01-16 22:28:02 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-01-16 22:28:02 +0300
commit74e1cf9f3be47b85a8a29c46786b4a839f977eee (patch)
tree780d0e902e65d88effbab2a965fa2dc9a13d2a73 /src/components/ScrollToTop.tsx
parentLock 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.tsx3
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;