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

在移动端minimap不支持手势拖拉? #3327

Closed
1 task
qq707631575 opened this issue Nov 26, 2021 · 3 comments
Closed
1 task

在移动端minimap不支持手势拖拉? #3327

qq707631575 opened this issue Nov 26, 2021 · 3 comments
Labels
Outdate This issue is too old to be resolved

Comments

@qq707631575
Copy link

qq707631575 commented Nov 26, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Steps to reproduce

1.移动端拖拉minimap的框,并不能拖动。
2.还有,拖拉时候的鼠标样式能不能自定义改一下?目前拖拉的时候鼠标样式是禁用的样式

Environment Info
g6 4.0.4
System -
Browser -
@Yanyan-Wang
Copy link
Contributor

移动端可能无法响应 DOM 的 'dragstart' 'drag' 'dragend' 事件。移动端图可视化推荐 @antv/f6 。

希望用 G6 的话,可能需要参考这里自定义 minimap:https://github.com/antvis/G6/blob/master/packages/plugin/src/minimap/index.ts

这里的 Line 109, 151, 189 给 DOM 绑定的是 'dragstart' 'drag' 'dragend' 事件

@Yanyan-Wang
Copy link
Contributor

鼠标样式可以考虑通过拿到拖拽狂的 DOM 修改其 CSS 来做到。拖拽框的 DOM class 可以通过配置项 viewportClassName 来指定,若不指定则默认为 'g6-minimap-viewport'

@Aarebecca Aarebecca added the Outdate This issue is too old to be resolved label Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.
这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outdate This issue is too old to be resolved
Projects
None yet
Development

No branches or pull requests

3 participants