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

h5 多端使用时 pc上的click和移动端的tap事件如何兼容处理 #147

Open
jzstkarol opened this issue Aug 23, 2022 · 1 comment

Comments

@jzstkarol
Copy link

image
image
此处tap事件绑定成功,根据文档绑定的click事件未生效

@ICMI
Copy link
Collaborator

ICMI commented Sep 29, 2022

目前不支持click,可以在外部触发click,模拟tap事件,通过 emitEvent 接口传递进去,类似小程序的实现。示例:
graph. emitEvent({
type: "tap",
x: 0, // 相对于 canvas 标签左上角
y: 0, // 相对于 canvas 标签左上角
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
})

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

2 participants