From 74e1cf9f3be47b85a8a29c46786b4a839f977eee Mon Sep 17 00:00:00 2001 From: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> Date: Sat, 16 Jan 2021 22:28:02 +0300 Subject: Polyfills Smooth Scroll Pollyfills smooth scroll on the scroll to top button. Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> --- src/components/ScrollToTop.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/ScrollToTop.tsx') 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; -- cgit v1.2.3