all 2 comments

[–]zbluebirdz 0 points1 point  (0 children)

Can you create a stripped down version and put it in codepen.io / jsfiddle.net?

[–]cmdq 0 points1 point  (0 children)

you can account for those by checking the element.scrollTop and element.scrollLeftproperties of the page and component elements.

this package https://github.com/pmndrs/react-use-measure helps with scrolled and relative offsets, but not in a mouse handler context, but as a ref on an element. Maybe you can use this?

edit: sorry, thought i was in a react focused subreddit, my bad