Skip to content

Add centre coordinates to callback object or how to calculate during pinch? #9

@stodge

Description

@stodge

Could you add the centre coordinates of the pinch gesture to the object?

Event.add(window, "gesture", function(event, self) {
    console.log(self.gesture, self.fingers, self.state, self.rotation, self.scale, self.centre);
});

If this isn't possible, any ideas how I should accurately calculate the centre of the pinch?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions