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

Question: Where's possible to track mouse pointer coordinates on mouse move? #128

Open
jamalromero opened this issue Oct 26, 2016 · 1 comment

Comments

@jamalromero
Copy link

I need to show and see mouse pointer coordinates on mouse move even after I add and stack multiple layers. If I add a mouse move handler on one layer, then later I add another layer on the top. When the mouse enters this new layer I loose then the tracking. Drag layer seems the right place because I believe stays always on top of the stack, but after adding the mouse move handler on drag layer I can't see any update of mouse pointer coordinates.

@mdproctor
Copy link
Contributor

You will need to have a mouse move event on each layer. For each event you'll need to iterate the parent chain to get the absolute mouse x, y.

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

2 participants