retyui/react-quick-pinch-zoom

cancel handled touchEnd events

martinkutter opened this issue · 2 comments

Currently it is not possible to integrate this library to an application that handles for example swipe events on an outer element.
Imagine you want to use this library inside an image slider with touch support and the "wipe to next image" event is also triggered if you want to move your zoomed in image.

So it is necessary to cancel the touchEnd event, if it is handled by the library and let it bubble if not.

Cancel if:

  • user performed a zoom interaction
  • user performed a drag interaction if zoom factor is greather than 1

fixed by #51