React-Native-native-video-controls在scrollview中并不能很好地寻求

发布于 2025-02-03 23:50:47 字数 98 浏览 4 评论 0原文

我在卷轴上有一个视频,儿童视频播放器传播了Scrollview的手势,这导致了一些奇怪的行为。我如何使反应本性视频控制仅对水平手势做出响应,或者至少防止传播到父scrollview?

I have a video inside a scrollview, and the child video player propagates the gesture to the scrollview, which results in some weird behavior. How do I make react-native-video-controls only respond to horizontal gestures, or at least prevent the propagation up to the parent scrollview?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄风 2025-02-10 23:50:47

对于遇到问题的任何人,我都可以通过在我的scrollview的道具中设置disablescrollviewpanresponder = {true}来修复它。

For anyone encountering the issue, I was able to fix it by setting disableScrollViewPanResponder={true} in the props of my scrollview.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文