react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

scroller.scrollTo() is not working at all

Open ItZmEkAtHiR opened this issue 2 years ago • 1 comments

@fisshy I've tried smooth scrolling using element and scroller but is not scrolling

PFB for the codesandbox link

https://codesandbox.io/s/serene-david-t6pf6v

ItZmEkAtHiR avatar Nov 02 '23 16:11 ItZmEkAtHiR

Hi, you have to specify "overflow:scroll"

.App {
  font-family: sans-serif;
  text-align: center;
  height: 95vh;
  overflow: scroll;
}
section {
  width: 90vw;
  height: 500px;
  display: flex;
  justify-content: center;
  /* scroll-snap-align: start; */
  align-items: center;
  background-color: darkcyan;
  border: 10px solid;
  border-radius: 10px;
}
body {
  /* overflow: hidden; */
}

fisshy avatar Nov 03 '23 23:11 fisshy