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?