react-zoom-pan-pinch icon indicating copy to clipboard operation
react-zoom-pan-pinch copied to clipboard

How to get the mouse position

Open trangresola opened this issue 1 year ago • 2 comments

Hi there,

Do we have any way to know the mouse position then mouse move on the image?

I want to record all mouse position when it move on the image.

trangresola avatar May 18 '23 07:05 trangresola

Having the same issue - did you figure it out? When zooming in and tapping I need to get the x/y position of the tap but the coordinates are off and I'm having trouble figuring out the offset. I am able to use offsetX and offsetY for desktop but for touch presses can't figure it out...

k2xl avatar Jun 03 '23 16:06 k2xl

Can the admin maybe answer. i also losing my mind over this "project". @k2xl

Ezriral avatar Jul 02 '23 11:07 Ezriral