NervJS/taro

使用了 linaria CSS in JS View组件设置catchMove={true} 编译之后还是bindtouchmove

Open

#11,664 创建于 2022年4月18日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)TypeScript (37,306 star) (4,897 fork)batch import
F-reactT-weappV-3good first issuewalk-around

描述

相关平台

微信小程序

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

复现步骤

const Container = styled(View) position: fixed; background-color: #3578e5; right: 0; bottom: 24rpx; border-radius: 50%; display: flex; justify-content: center; align-items: center;

<Container onTouchStart={onTouchStart} catchMove={true} onTouchMove={onTouchMove} onTouchCancel={onTouchCancel} onTouchEnd={onTouchEnd} style={{ bottom: Taro.pxTransform(bottom), right: Taro.pxTransform(right), width: Taro.pxTransform(contentWidth), height: Taro.pxTransform(contentHeight) }}>

期望结果

catchtouchmove而不是bindtouchmove

实际结果

bindtouchmove

环境信息

👽 Taro v3.4.4

validFiles []

  Taro CLI 3.4.4 environment info:
    System:
      OS: macOS 12.2.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.19.0 - ~/.nvm/versions/node/v14.19.0/bin/node
      npm: 6.14.16 - ~/.nvm/versions/node/v14.19.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.4.4 => 3.4.4 
      @tarojs/components: 3.4.4 => 3.4.4 
      @tarojs/mini-runner: 3.4.4 => 3.4.4 
      @tarojs/plugin-framework-react: 3.4.4 => 3.4.4 
      @tarojs/react: 3.4.4 => 3.4.4 
      @tarojs/runtime: 3.4.4 => 3.4.4 
      @tarojs/taro: 3.4.4 => 3.4.4 
      @tarojs/webpack-runner: 3.4.4 => 3.4.4 
      babel-preset-taro: 3.4.4 => 3.4.4 
      eslint-config-taro: 3.4.4 => 3.4.4 
      react: ^17.0.0 => 17.0.2 
      taro-ui: ^3.1.0-beta.2 => 3.1.0-beta.2 

贡献者指南