Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
Implement scroll in react dnd component
  useEffect(
    () =>
      monitor.subscribeToOffsetChange(() => {
        const offset = monitor.getSourceClientOffset()?.y
        scroll(offset)
      }),
    [monitor, scroll, diff],
  )

please advise, I'm writing scrolling in dnd components and I need the draggable item at the top / bottom of the container to scroll the list. So the scroll works as long as I move the mouse in that range. But if the mouse is in place, the container does not scroll. What are the ideas for fixing?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!