Using two-finger drag should allow for moving the canvas position #21736

Open
opened 2026-02-21 20:14:05 -05:00 by yindo · 3 comments
Owner

Originally created by @hyoban on GitHub (Jan 18, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.4

Cloud or Self Hosted

Cloud

Steps to reproduce

.

✔️ Expected Behavior

like https://www.tldraw.com/

Actual Behavior

No response

Originally created by @hyoban on GitHub (Jan 18, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.4 ### Cloud or Self Hosted Cloud ### Steps to reproduce . ### ✔️ Expected Behavior like https://www.tldraw.com/ ### ❌ Actual Behavior _No response_
yindo added the 💪 enhancementstale labels 2026-02-21 20:14:05 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 18, 2026):

Two-finger drag to move the canvas isn't currently implemented in Dify. The workflow canvas uses ReactFlow, which supports panning via mouse drag (when in "hand" mode) and pinch-to-zoom, but there's no explicit handling for two-finger drag gestures for panning the canvas in the codebase as of version 1.11.4. You can find the relevant configuration in the workflow component, where props like panOnDrag and zoomOnPinch are set, but multi-touch panning isn't customized beyond ReactFlow's defaults see source.

If you want to add two-finger drag support, you would likely need to implement custom touch event handling or check if a newer ReactFlow version supports this gesture natively. The main file to modify is web/app/components/workflow/index.tsx.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 18, 2026): <!-- Answer --> Two-finger drag to move the canvas isn't currently implemented in Dify. The workflow canvas uses ReactFlow, which supports panning via mouse drag (when in "hand" mode) and pinch-to-zoom, but there's no explicit handling for two-finger drag gestures for panning the canvas in the codebase as of version 1.11.4. You can find the relevant configuration in the workflow component, where props like `panOnDrag` and `zoomOnPinch` are set, but multi-touch panning isn't customized beyond ReactFlow's defaults [see source](https://github.com/langgenius/dify/blob/7b66bbc35a6f3c29f0942c30ce583ae78dfcc6c2/web/app/components/workflow/index.tsx#L27-L458). If you want to add two-finger drag support, you would likely need to implement custom touch event handling or check if a newer ReactFlow version supports this gesture natively. The main file to modify is `web/app/components/workflow/index.tsx`. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/89e1008a-c98c-45d7-bc74-7a722d162d23?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/89e1008a-c98c-45d7-bc74-7a722d162d23?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/89e1008a-c98c-45d7-bc74-7a722d162d23?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/89e1008a-c98c-45d7-bc74-7a722d162d23?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/89e1008a-c98c-45d7-bc74-7a722d162d23?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/89e1008a-c98c-45d7-bc74-7a722d162d23?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/89e1008a-c98c-45d7-bc74-7a722d162d23?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Two-finger%20drag%20to%20move%20the%20canvas%20isn%27t%20currently%20implemented%20in%20Dify.%20The%20workflow%20canvas%20uses%20ReactFlow%2C%20which%20supports%20panning%20via%20mouse%20drag%20%28when%20in%20%22hand%22%20mode%29%20and%20pinch-to-zoom%2C%20but%20there%27s%20no%20explicit%20handling%20for%20two-finger%20drag%20gestures%20for%20panning%20the%20canvas%20in%20the%20codebase%20as%20of%20version%201.11.4.%20You%20can%20find%20the%20relevant%20configuration%20in%20the%20workflow%20component%2C%20where%20props%20like%20%60panOnDrag%60%20and%20%60zoomOnPinch%60%20are%20set%2C%20but%20multi-touch%20panning%20isn%27t%20customized%20beyond%20ReactFlow%27s%20defaults%C2%A0%5Bsee%20source%5D%28https%3A//github.com/langgenius/dify/blob/7b66bbc35a6f3c29f0942c30ce583ae78dfcc6c2/web/app/components/workflow/index.tsx%23L27-L458%29.%0A%0AIf%20you%20want%20to%20add%20two-finger%20drag%20support%2C%20you%20would%20likely%20need%20to%20implement%20custom%20touch%20event%20handling%20or%20check%20if%20a%20newer%20ReactFlow%20version%20supports%20this%20gesture%20natively.%20The%20main%20file%20to%20modify%20is%20%60web/app/components/workflow/index.tsx%60.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/31176)
Author
Owner

@hjlarry commented on GitHub (Jan 18, 2026):

seems two-finger drag work in Pointer Mode, but not in Hand Mode

@hjlarry commented on GitHub (Jan 18, 2026): seems two-finger drag work in Pointer Mode, but not in Hand Mode
Author
Owner

@dosubot[bot] commented on GitHub (Feb 19, 2026):

Hi, @hyoban. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested two-finger drag gesture support to move the canvas in Dify, similar to tldraw.com.
  • Currently, Dify uses ReactFlow which supports mouse drag panning in "hand" mode and pinch-to-zoom, but not explicit two-finger drag panning.
  • It was noted that two-finger drag works in Pointer Mode but not in Hand Mode.
  • Implementing this feature would require custom touch event handling or an update to ReactFlow.
  • The issue remains unresolved with no recent updates.

Next Steps:

  • Please let me know if this feature is still relevant to the latest version of Dify by commenting on this issue.
  • If I do not hear back within 15 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Feb 19, 2026): Hi, @hyoban. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested two-finger drag gesture support to move the canvas in Dify, similar to tldraw.com. - Currently, Dify uses ReactFlow which supports mouse drag panning in "hand" mode and pinch-to-zoom, but not explicit two-finger drag panning. - It was noted that two-finger drag works in Pointer Mode but not in Hand Mode. - Implementing this feature would require custom touch event handling or an update to ReactFlow. - The issue remains unresolved with no recent updates. **Next Steps:** - Please let me know if this feature is still relevant to the latest version of Dify by commenting on this issue. - If I do not hear back within 15 days, I will automatically close this issue. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21736