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

[Touchable] "Cannot find single active touch" invariant violation when tapping with multiple fingers #79

Closed
ide opened this issue Feb 19, 2015 · 8 comments · May be fixed by maximejf42/react-native#4 or tes/react-native#1
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ide
Copy link
Contributor

ide commented Feb 19, 2015

Repro: Open the "View" example screen in the UIExplorer and tap repeatedly with multiple fingers. The red box pops up with an invariant violation eventually. The more fingers you tap with (try four), the easier it is to repro.

Invariant Violation: Cannot find single active touch
    recordTouchTrack
    extractEvents
    extractEvents
    handleTopLevel
    _receiveRootNodeIDEvent
    receiveTouches
    jsCall
    _callFunction
    applyWithGuard
    guardReturn
    callFunctionReturnFlushedQueue
    [native code]
    global code
@ckknight
Copy link

This is also reproducible with the following steps:

  1. Place index finger
  2. Place middle finger
  3. Lift index finger
  4. Place index finger
  5. Lift middle finger
  6. Place middle finger

@mrdanjl
Copy link

mrdanjl commented Apr 14, 2015

+1 - Occurs when you use two finger drag on a list or scroll view

@dvdhsu
Copy link

dvdhsu commented May 4, 2015

+1. Also happens when you zoom on a ScrollView, but then lift one finger off.

This issue has been around for a while. Is there anybody interested in taking this up? I don't have the time right now, unfortunately.

Edit: Okay, actually, looking at the source code, it looks like we should just delete a few lines. The invariant seems only to be causing trouble (and is only in dev mode, anyways), so I think removing it is fine. I'll make a pull request later tonight.

@Iragne
Copy link
Contributor

Iragne commented May 27, 2015

+1
do you create a PR ??
@dvdhsu

@dvdhsu
Copy link

dvdhsu commented May 28, 2015

Looking at the source code, this check only occurs when you're in dev mode. Seeing that it was working in production, I just ignored the problem. LMK if you still want me to make it?

@jessepollak
Copy link

+1 for this occurring in dev mode

@brentvatne brentvatne changed the title "Cannot find single active touch" invariant violation when tapping with multiple fingers [Touchable] "Cannot find single active touch" invariant violation when tapping with multiple fingers May 31, 2015
@liubko
Copy link
Contributor

liubko commented Jun 7, 2015

+1
react-native v0.5.0

@sahrens
Copy link
Contributor

sahrens commented Jun 12, 2015

I remember seeing a task about this internally that got fixed, and I can't seem to repro now. Please re-open if you can repro in v0.6.0-rc

@sahrens sahrens closed this as completed Jun 12, 2015
harrykiselev pushed a commit to harrykiselev/react-native that referenced this issue Aug 5, 2015
[docs] added missing semicolon in Dispatcher code sample
@facebook facebook locked as resolved and limited conversation to collaborators Jun 12, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
9 participants