We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 真机上canvas不能触发绑定的touch事件
复现步骤
npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project
dev:mp-weixin
<template> <canvas id="cs" type="2d" @touchstart="onTouchStart"></canvas> </template> <script lang="ts"> import { defineComponent } from 'vue' export default defineComponent({ methods: { onTouchStart() { uni.showToast({ title: 'touch start', icon: 'none' }); }, } }); </script>
预期结果 真机上正常弹出toast提示信息
实际结果 无任何反应,没有执行 onTouchStart 方法
onTouchStart
系统信息:
补充信息 创建Vue2的正式版项目则没有此问题
The text was updated successfully, but these errors were encountered:
关联:https://ask.dcloud.net.cn/question/138565
Sorry, something went wrong.
vite + vue3 遇到同样问题,开发者工具没有问题,真机测试所有touch时间都不能触发,tap可触发
版本号:^3.0.0-alpha-3030920220121001
vue2 开发者工具和真机测试都没有问题
这个问题影响还是挺大的,之前vue2没问题,项目迁移vue3重构遇到这个问题卡主了,下一个版本能修复吗? @zhetengbiji
fix(mp-weixin): canvas with touch event (#3209) (question/138565)
5a2c58e
已修复,cli更新至:3.0.0-alpha-3030820220114006
H5 端 canvas 在uni-canvas 包裹下没有touch事件响应
fxy060608
No branches or pull requests
问题描述
真机上canvas不能触发绑定的touch事件
复现步骤
npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project
;dev:mp-weixin
;预期结果
真机上正常弹出toast提示信息
实际结果
无任何反应,没有执行
onTouchStart
方法系统信息:
补充信息
创建Vue2的正式版项目则没有此问题
The text was updated successfully, but these errors were encountered: