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

add 'update' events for zoom and drag. #55

Merged
merged 1 commit into from
Mar 3, 2018

Conversation

endel
Copy link
Contributor

@endel endel commented Mar 2, 2018

This pull request allows listening to zoom and drag changes, triggered by mousemove event.

@sandstrom
Copy link
Collaborator

@endel Thanks for participating!

Can you describe a bit more about what this change does:

  • Does it fix a bug or add new functionality?
  • When is this feature useful?

@endel
Copy link
Contributor Author

endel commented Mar 2, 2018

Hi @sandstrom!

Does it fix a bug or add new functionality?

It adds new functionality.

When is this feature useful?

By listening to pz_zoomupdate or pz_dragupdate, you can interact with external elements given the current state of the PinchZoom. e.g. animate a progress bar given the current zoom factor, or move something else on the screen at the same time the drag is happening.

Hope this helps,
Cheers!

@sandstrom sandstrom merged commit c1f7ec0 into manuelstofer:master Mar 3, 2018
@sandstrom
Copy link
Collaborator

Got it, thanks!

Merged now. I appreciate your participation! 🏅

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.

None yet

2 participants