Skip to content

Event help #18

Open
Open
@chasegiunta

Description

@chasegiunta

Hi there! It's possible I'm being dense here, but I'm attempting to figure out how I can detect the start and end of a pinch gesture.

I was assuming that the phase property would let me know whether the callback is start or end, but in all cases, it's coming back as move.

Am I missing something? Thank you

const region = new wes.Region(el);
const pinch = new wes.Pinch(el, data => {
  console.log(data); // data.phase is always `move`
});
region.addGesture(pinch);

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