Skip to content

what's the different pinchstart | pinchend & pinchin | pinchout #1

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
boomyao opened this issue Jul 25, 2017 · 1 comment
Closed

what's the different pinchstart | pinchend & pinchin | pinchout #1

boomyao opened this issue Jul 25, 2017 · 1 comment
Assignees

Comments

@boomyao
Copy link

boomyao commented Jul 25, 2017

so many callback function that i don't know which one should i do ???

@paranoidjk
Copy link
Member

paranoidjk commented Jul 25, 2017

The api is basicly as same as hammer.js.

They are in diffrent standpoint.

  1. pinchstart / pinchmove / pinchend / pinchcancel is based on TouchEvent view, they are the low level api.

  2. pinch in a uniform api, or a alias,both pinchstart / pinchmove / pinchend / pinchcancel will trigger pinch at the same time. It's just for convenient.

  3. pinchin, pinchout is the top level api, which calculated the actually gesture behavior for users. pinchin means zoom out, pinchout means zoom in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants