Skip to content

Please help: pinch events not firing #95

@alexandraclaire

Description

@alexandraclaire

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions