Open adam-s opened 6 years ago
@adam-s This is the behavior i'm trying to explain in my other issue. I get this when i click on one of the SVG elements.
Current attempt at a solution:
onPanResponderGrant: (evt) => {
// Set self for filtering events from other PanResponderTarges
if (evt.target !== this.prTargetSelf || evt.target !== this.prTargetOuter) {
if (this.prTargetOuter == null) { this.prTargetOuter = evt.currentTarget; }
if (evt.target !== evt.currentTarget) { this.prTargetSelf = evt.target; }
}
},
@adam-s Did you get it to work?
Have the same problem :/
Any solutions to this?
@brunof17 I never got it fixed and eventually decided to skip zoom in my use case.
Current attempt at a solution:
onPanResponderGrant: (evt) => { // Set self for filtering events from other PanResponderTarges if (evt.target !== this.prTargetSelf || evt.target !== this.prTargetOuter) { if (this.prTargetOuter == null) { this.prTargetOuter = evt.currentTarget; } if (evt.target !== evt.currentTarget) { this.prTargetSelf = evt.target; } } },
@adam-s Can you show the full code about this trick? Thank you.
any news? i am stuck
On iOS if I move my figures around quickly it will stop the pan and zoom when touching the SVG image and paths, however, the background area will still be responsive.