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

[Bug] 引入 @arco-design/mobile-react/tools/touch2mouse 后,图表 click 事件监听失效 #2036

Closed
xiaoluoHe opened this issue Jan 15, 2024 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@xiaoluoHe
Copy link
Contributor

Version

1.8.x

Link to Minimal Reproduction

none

Steps to Reproduce

NA

Current Behavior

click 事件不触发

Expected Behavior

click 事件正常触发

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@xiaoluoHe xiaoluoHe added the bug Something isn't working label Jan 15, 2024
@neuqzxy neuqzxy added this to the v1.8.9 milestone Jan 22, 2024
@neuqzxy
Copy link
Contributor

neuqzxy commented Jan 22, 2024

solved in #2094

@neuqzxy
Copy link
Contributor

neuqzxy commented Jan 22, 2024

通过配置supportsTouchEvents可以解决

new VChart(spec, { dom: 'app', supportsTouchEvents: false })

@stiekel
Copy link

stiekel commented Jan 23, 2024

@neuqzxy 请问对于使用 @visactor/react-vchart 组件的情况下,这个 supportsTouchEvents 如何配置呢?

import { VChart } from '@visactor/react-vchart';
<VChart spec={spec} />

@xile611
Copy link
Contributor

xile611 commented Jan 23, 2024

@neuqzxy 请问对于使用 @visactor/react-vchart 组件的情况下,这个 supportsTouchEvents 如何配置呢?

import { VChart } from '@visactor/react-vchart';
<VChart spec={spec} />

@stiekel

<VChart spec={spec} options={{ supportsTouchEvents: true }}>

@xile611 xile611 closed this as completed Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants