You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an InteractableView setup, and the view works fine, except it breaks some other touch components.
I have a toggle button at the top of my screen, and it works fine - up to the point I move the view - even the barest, slightest touch on the InteractableView breaks it. There's no overlap.
What might be going on here?
The text was updated successfully, but these errors were encountered:
It seems to be related to some console logging in the onDrag prop function.
This freezes:
onDrag(event) {
console.log("event test");
console.log(event);
let x = event.nativeEvent.x;
let y = event.nativeEvent.y;
console.log(y);
this.setState({ yPos: y });
}
This does not:
onDrag(event) {
let x = event.nativeEvent.x;
let y = event.nativeEvent.y;
this.setState({ yPos: y });
}
haveamission
changed the title
View seems to break other functionality when moved even the smallest amount
Console log inside onDrag function causes freezing upon moving the view
Nov 17, 2019
I'm having the same issue with a console log inside an onDrag method. The contents of the event passed into the method aren't the same as what's listed in the documentation.
I have an InteractableView setup, and the view works fine, except it breaks some other touch components.
I have a toggle button at the top of my screen, and it works fine - up to the point I move the view - even the barest, slightest touch on the InteractableView breaks it. There's no overlap.
What might be going on here?
The text was updated successfully, but these errors were encountered: