Closed jwkvam closed 6 years ago
@jwkvam - Thanks for opening this issue! I appreciate you including a description of your use case. It sounds like you are working on some very cool stuff! If I understand correctly you would like to capture the precise position a user clicks on an image, relative to the image boundaries. Does that sound right?
@ethanselzer Yes! That's exactly what I'm looking for. Any value I can use to estimate where the user clicked on the image.
Hi @jwkvam - Thanks for the information. The primary focus of react-cursor-position is to notify child components with the position of the cursor over time. I think it is less suited to capturing the position of the cursor at a single moment in time. I wonder if your use case would be better served by a custom click handler like this example on CodePen. Please let me know your thoughts. Thanks!
That's pretty cool! That's covers exactly what I want. I'm not much of a JS developer myself so I usually just try to find react components and treat them like lego pieces :) I'll take that snippet and try to run with it. Thanks for your help.
Hello, very slick looking library! I was looking for a react component that gave coordinates from images and found this one.
I am looking for a component that has a click event. Use cases I have in mind include:
Does this feature interest you? Thanks!