Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml3d.getElementByPoint() with absolute coordinates #3

Closed
uykusuz opened this issue Apr 11, 2013 · 1 comment
Closed

xml3d.getElementByPoint() with absolute coordinates #3

uykusuz opened this issue Apr 11, 2013 · 1 comment

Comments

@uykusuz
Copy link
Contributor

uykusuz commented Apr 11, 2013

getElementByPoint() needs to be called with x and y relative to the xml3d element. This is
okay, as long as I'm using something like jQuery's offset() to obtain the relative coordinates.
If I don't have that at hand I have to find a way to calculate the offset or even if I have it,
I find it tedious to always have to convert the coordinates first.

I would find it great if we could just pass it values, that are in a mouse event. document.getElementFromPoint() (https://developer.mozilla.org/en-US/docs/DOM/document.elementFromPoint) is a similar method and here we can pass in directly an event's pageX/pageY coordinates.

@xml3d
Copy link
Collaborator

xml3d commented Apr 23, 2013

Fixed in 4.4 (8d8e8cf)

@xml3d xml3d closed this as completed Apr 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant