mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
根本原因:TouchableOpacity 内嵌在 PanResponder Animated.View 内, JS层 TouchableOpacity 与 Video 原生层共同阻断了 PanResponder 响应权。 修复方案: - onStartShouldSetPanResponder: true,从 start 阶段独占响应权 - 移除主内容区的 TouchableOpacity,改用纯 View - isDragging ref 区分点击与拖动:位移 >5px 为拖动 - onPanResponderRelease 通过 locationX/Y 坐标判断点击目标(关闭 or 跳转) - Video 外层 View 加 pointerEvents='none' 防止原生层吞噬触摸