I'm looking to a solution to get if Dom move on screen,
I have an absolut div (a download overlay) appears when click on documents on my website, but I want her to disappear when the document move (like scroll, touchmove, etc...) but actually my documents can be on differents container that scroll vertically and horizontally, and I try to find a way to avoid put listener on each container to scroll..
My overlay is triggered by custom hook in React, disappear on click outside, disappear on window scroll, but I'm in trouble with different containers's scroll..
Can someone have an idea to help me please ? Have a nice day !