镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Description

@ide

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

Activity

  1. ckknight commented on Mar 27, 2015

    @ckknight

    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
  2. mrdanjl commented on Apr 14, 2015

    @mrdanjl

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

  3. dvdhsu commented on May 4, 2015

    @dvdhsu

    +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.

  4. Iragne commented on May 27, 2015

    @Iragne
    Contributor

    +1
    do you create a PR ??
    @dvdhsu

  5. dvdhsu commented on May 28, 2015

    @dvdhsu

    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?

  6. jessepollak commented on May 30, 2015

    @jessepollak

    +1 for this occurring in dev mode

  7. 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[/+] on May 31, 2015
  8. liubko commented on Jun 7, 2015

    @liubko
    Contributor

    +1
    react-native v0.5.0

  9. sahrens commented on Jun 12, 2015

    @sahrens
    Contributor

    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

  10. locked as resolved and limited conversation to collaborators on Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions