Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console log inside onDrag function causes freezing upon moving the view #303

Open
haveamission opened this issue Nov 16, 2019 · 2 comments

Comments

@haveamission
Copy link

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?

@haveamission
Copy link
Author

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 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
@cspicuzza
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants