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

Please help: pinch events not firing #95

Open
alexandraclaire opened this issue May 22, 2018 · 0 comments
Open

Please help: pinch events not firing #95

alexandraclaire opened this issue May 22, 2018 · 0 comments

Comments

@alexandraclaire
Copy link

I am making a component with React and Hammer using react-hammer and I can't seem to get the pinch to work! I have successfully used the swipe events, but got stuck here.

This is the piece of code:

      <Hammer onPinch={this.onPinchStart.bind(this)} options={{
           recognizers: {
              pinch: {
                enable: true
              }
           }
        }}>
        <div className="investigate__panel--zoom">
          <p>PINCH TO ZOOM</p>
        </div>
      </Hammer>

and this is the event - I am just trying to get it to do ANYTHING at this point:

onPinchStart() {
console.log('zooming!');
}
Can anyone explain why this event is not being called?

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