Upvote 1

How to stop drag event from preventing pinch and rotate on same element in the simulator

Answered Benjamin Winter 7 years ago

I have a simple Image element, and i want to make that element movable, scalable, and rotatable.

For that reason i added an on drag -> move event, and on pinch close/open , on rotate left/right events.

But trying to pinch or rotate in the simulator still triggers the drag event instead of the pinch or rotate events.

What do i have to change to make pinch and rotate take priority?


Because resize and rotate dont seem to be able to scale/rotate based on the amount pinched/rotated, they probably arent ideal for my use case anyway, so is there maybe an altogether better way to achieve what i want?

Leave a Comment
 
Attach a file