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

LivePlayer里包裹的ScrollView无法触发onScroll事件 #14871

Open
luqihao opened this issue Nov 23, 2023 · 0 comments
Open

LivePlayer里包裹的ScrollView无法触发onScroll事件 #14871

luqihao opened this issue Nov 23, 2023 · 0 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@luqihao
Copy link

luqihao commented Nov 23, 2023

相关平台

微信小程序

小程序基础库: 3.2.1
使用框架: React

复现步骤

<LivePlayer>

    <ScrollView onScroll={() => {}} onScrollToLower={() => {}}></ScrollView>

</LivePlayer>

期望结果

可以正常触发滚动相关事件

实际结果

无法触发滚动相关事件

环境信息

Taro v3.5.0
  Taro CLI 3.5.0 environment info:
    System:
      OS: macOS 13.4.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
      Yarn: 1.22.17 - ~/.yarn/bin/yarn
      npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.16 => 3.6.16
      @tarojs/components: 3.6.16 => 3.6.16
      @tarojs/helper: 3.6.16 => 3.6.16
      @tarojs/plugin-framework-react: 3.6.16 => 3.6.16
      @tarojs/plugin-platform-weapp: 3.6.16 => 3.6.16
      @tarojs/react: 3.6.16 => 3.6.16
      @tarojs/runtime: 3.6.16 => 3.6.16
      @tarojs/shared: 3.6.16 => 3.6.16
      @tarojs/taro: 3.6.16 => 3.6.16
      @tarojs/taro-loader: 3.6.16 => 3.6.16
      babel-preset-taro: 3.6.16 => 3.6.16
      eslint-config-taro: 3.6.16 => 3.6.16
      react: 18.2.0 => 18.2.0

补充信息

就算给ScrollView设置好固定高度,内容足够多去撑开ScrollView,在liveplayer全屏情况下也还是无法触发onScroll事件(包括其他滚动相关的事件)

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

1 participant