Skip to content

[Question] 是否考虑像react-flow一样,默认支持移动端触摸拖拽 #228

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

Open
waynedeng01 opened this issue May 14, 2025 · 3 comments
Assignees
Labels
feature New feature or request question Further information is requested

Comments

@waynedeng01
Copy link

🙋 SDK Version

Please input version of SDK.
latest

📌 Layout

Free layout or Fixed layout?
free

💻 Environment

  • Operation System: (e.g. Windows 11 / macOs 14.3)
  • Node.js: 18
  • Other:

📝 Question Description

flowgram官方demo似乎不支持在移动端上touch拖拽,也没有看到对应文档有支持,只看到有对于鼠标事件的处理;
同时调研了下react-flow等产品,默认都支持移动端上的拖拽,点击连线等交互,想问下是否有方法可以基于本库定制出对应的效果呢,或是将来本项目有计划支持这个能力呢?

@waynedeng01 waynedeng01 added the question Further information is requested label May 14, 2025
@xiamidaxia
Copy link
Collaborator

xiamidaxia commented May 14, 2025

你好,这个问题很好,我们规划中要支持 touch 逻辑适配移动端,目前会对画布中所有的 mouse 和 PlaygroundDrag 模块做一层统一交互抽象,也会考虑类似 reactflow 采用 d3 的组件模块 @louisyoungx

@xiamidaxia
Copy link
Collaborator

如果你基于我们的源码修改,也可以看看能不能一起共建,我们需要适配的就是代码中的 mouse 事件

@louisyoungx
Copy link
Collaborator

后面我会支持,我记一下

@louisyoungx louisyoungx self-assigned this May 14, 2025
@xiamidaxia xiamidaxia added the feature New feature or request label May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants