diff options
author | 2021-01-17 02:28:20 +0300 | |
---|---|---|
committer | 2021-01-17 02:28:20 +0300 | |
commit | 0b13917c6200e9d743582bd2aa185f5fef573977 (patch) | |
tree | bccad0509f75491ada5cc1fb151d74f45e58569f /src/components/ScrollToTop.tsx | |
parent | Closes Select Menu On Click (diff) |
Shows Pointer On Scroll Button
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/components/ScrollToTop.tsx')
-rw-r--r-- | src/components/ScrollToTop.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/ScrollToTop.tsx b/src/components/ScrollToTop.tsx index 2c5e9ca..231c9e8 100644 --- a/src/components/ScrollToTop.tsx +++ b/src/components/ScrollToTop.tsx @@ -59,8 +59,10 @@ class ScrollToTop extends React.Component { if (window.pageYOffset > 250) { last_ref.current.style.opacity = "1"; + last_ref.current.style.cursor = "pointer"; } else { last_ref.current.style.opacity = "0"; + last_ref.current.style.cursor = "default"; } } |