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

Image 元素未支持长按事件(longpress) #7061

Closed
gulewei opened this issue Jul 15, 2020 · 0 comments · Fixed by #7508
Closed

Image 元素未支持长按事件(longpress) #7061

gulewei opened this issue Jul 15, 2020 · 0 comments · Fixed by #7508
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@gulewei
Copy link

gulewei commented Jul 15, 2020

相关平台

微信小程序

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

复现步骤

从编译输出的base.wxml来看,Image元素上不存在binglongpress。源码中亦未给Image元素添加touchEvents @tarojs/shared

期望结果

Image 元素可以响应长按(longpress)事件

实际结果

Image元素长按无响应

环境信息

👽 Taro v3.0.2


  Taro CLI 3.0.2 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.18.1 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.2 => 3.0.2 
      @tarojs/components: 3.0.2 => 3.0.2 
      @tarojs/mini-runner: 3.0.2 => 3.0.2 
      @tarojs/react: 3.0.2 => 3.0.2 
      @tarojs/router: 3.0.2 => 3.0.2 
      @tarojs/runtime: 3.0.2 => 3.0.2 
      @tarojs/taro: 3.0.2 => 3.0.2 
      @tarojs/taro-h5: 3.0.2 => 3.0.2 
      @tarojs/webpack-runner: 3.0.2 => 3.0.2 
      babel-preset-taro: ^3.0.2 => 3.0.2 
      eslint-config-taro: 3.0.2 => 3.0.2 
      eslint-plugin-taro: 3.0.2 => 3.0.2 
      react: ^16.13.1 => 16.13.1 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 15, 2020
@Chen-jj Chen-jj added this to the 3.0.9 milestone Sep 3, 2020
@Chen-jj Chen-jj linked a pull request Sep 3, 2020 that will close this issue
9 tasks
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants