Skip to content

Emit mouse changes on panning event #166

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

Closed
wants to merge 3 commits into from

Conversation

wjdingman1
Copy link

We had a unique use case where we had two separate images that we had to pan and zoom in unison.

Zooming worked fine as we were able to pass the clientX and clientY through an event hub to the sibling component and call zoomAbs(clientx, clienty).

However, when panning we needed access dx and dy so we could also pass them through an event hub and call moveTo(dx, dy) on the sibling component. Currently the api did not have any way to emit the actual mouse event when panning.

This might open the door for further changes to expose mouse movements along with the api on the instances that are listened for.

@wjdingman1 wjdingman1 closed this Feb 6, 2020
@wjdingman1
Copy link
Author

sorry have additional changes to make, just going to add a method to the api

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

Successfully merging this pull request may close these issues.

1 participant