Skip to content

taro-h5 方式在浏览器访问 onTouchStart 不执行 #18026

@crazyair

Description

@crazyair

请先确认

  • 我已搜索并确定这个提交不是重复的

Taro 版本

v4

相关平台

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 头条小程序
  • QQ 小程序
  • 钉钉小程序
  • 飞书小程序
  • 快手小程序

小程序基础库版本

2

使用框架

React

问题描述

onTouchStart 没有执行

复现链接

https://github.com/crazyair/taro-touch

复现步骤

  1. 执行 pnpm dev:h5
  2. 用电脑浏览器打开,
  3. onTouchStart 没有执行

环境信息

👽 Taro v4.1.4


  Taro CLI 4.1.4 environment info:
    System:
      OS: macOS 14.7.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.1/bin/yarn
      npm: 10.9.1 - ~/.nvm/versions/node/v18.17.1/bin/npm
    npmPackages:
      @tarojs/cli: 4.1.4 => 4.1.4 
      @tarojs/components: 4.1.4 => 4.1.4 
      @tarojs/helper: 4.1.4 => 4.1.4 
      @tarojs/plugin-framework-react: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-alipay: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-h5: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-harmony-hybrid: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-jd: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-qq: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-swan: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-tt: 4.1.4 => 4.1.4 
      @tarojs/plugin-platform-weapp: 4.1.4 => 4.1.4 
      @tarojs/react: 4.1.4 => 4.1.4 
      @tarojs/runtime: 4.1.4 => 4.1.4 
      @tarojs/shared: 4.1.4 => 4.1.4 
      @tarojs/taro: 4.1.4 => 4.1.4 
      @tarojs/taro-loader: 4.1.4 => 4.1.4 
      @tarojs/webpack5-runner: 4.1.4 => 4.1.4 
      babel-preset-taro: 4.1.4 => 4.1.4 
      eslint-config-taro: 4.1.4 => 4.1.4 
      react: ^18.0.0 => 18.3.1

贡献代码

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-reactFramework - ReactT-h5Target - 编译到 H5V-4Version - 4.xbugSomething isn't working

    Type

    No type

    Projects

    Status

    Padding

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions