react / react/react-native

onResponderRelease on View is called one time when releasing two fingers or more at exactly the same time.

オープン
#48,416 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

API: Easing Issue: Author Provided Repro
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

Code:

<View
      style={styles.container}
      onStartShouldSetResponder={() => true}
      onMoveShouldSetResponder={() => true}
      onResponderStart={addFingerOnScreen}
      onResponderMove={moveFingersOnScreen}
      onResponderRelease={releaseFingerFromScreen}>
</View>

Actions:

  • I pressed the screen (on the view) with two fingers
  • I released the screen with my two fingers on exactely on the same time

Result:

onResponderRelease is called one time with touches legnth 1 and changed touches lenght 1.

Expected:

onResponderRelease is called two times. The first time with touches length 1 and changed touches length 1. The second time with touches length 0 and changed touches length 1.

OR

onResponderRelease is called 1 time. The first time with touches length 0 and changed touches length 2.

Steps to reproduce
  • I pressed the screen (on the view) with two fingers
  • I released the screen with my two fingers on exactely on the same time
React Native Version

0.76.5

Affected Platforms

Runtime - Android

Output of npx react-native info
System:
  OS: macOS 15.2
  CPU: (8) arm64 Apple M1
  Memory: 324.31 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.12.2
    path: ~/.nvm/versions/node/v20.12.2/bin/node
  Yarn: Not Found
  npm:
    version: 10.5.0
    path: ~/.nvm/versions/node/v20.12.2/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /Users/Modis/.rvm/gems/ruby-2.7.6/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.2 AI-232.10227.8.2321.11479570
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/Modis/.rvm/rubies/ruby-2.7.6/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.5
    wanted: 0.76.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
Stacktrace or Logs
-
Reproducer

https://github.com/mohamed-amine-haine/responder-release-bug

Screenshots and Videos

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、リンクされている responder-release-bug の reproducer を Android で実行し、issue に示されている View responder のコールバックを調べます。2 本の指を同時に離したときのコールバック数と touches/changedTouches の値を比較します。報告された release の挙動が期待される結果のいずれかと一致すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, javascript, react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。