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

微信小程序 基础库3.3.4 canvas 安卓真机无法触发@touchstart等事件 #4765

Closed
Lin-Van opened this issue Mar 8, 2024 · 1 comment

Comments

@Lin-Van
Copy link

Lin-Van commented Mar 8, 2024

问题描述
canvas画布无法触发@touchstart、@touchmove@touchend等触摸事件,在开发者工具是可以触发,用基础库3.3.3也是没问题。

复现步骤
[复现问题的步骤]
测试地址:https://gitee.com/xilinpz/l-echart-test.git

  1. 打开vscode 导入测试项目
  2. pnpm i
  3. pnpm dev:mp-weixin
  4. 点击图表没有tooltip提示

预期结果
点击图表应该有tooltip提示

实际结果
开发者工具、基础库为3.3.3可以弹出,使用基础库3.3.4的真机无法弹出

系统信息:

  • 发行平台: 微信小程序
  • 操作系统 Android
  • uni-app版本 "@dcloudio/uni-app": "3.0.0-3090920231225001"
  • 设备信息 OPPO

补充信息
基础库3.3.4编译后,真机测试了没有bindtouchstart等属性

@Lin-Van
Copy link
Author

Lin-Van commented Mar 11, 2024

最后解决的方式是修改pages.json中"renderingMode": "mixed",然后也可以使用2d画布渲染了

@Lin-Van Lin-Van closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant