Skip to content

Embedded small icon cannot be moved in the app, but it works on PC #16719

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

Closed
5 tasks done
yatokami opened this issue Mar 25, 2025 · 1 comment · Fixed by #16717
Closed
5 tasks done

Embedded small icon cannot be moved in the app, but it works on PC #16719

yatokami opened this issue Mar 25, 2025 · 1 comment · Fixed by #16717
Labels
🐞 bug Something isn't working good first issue Good first issue for newcomers

Comments

@yatokami
Copy link

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Open the app and embed the small icon.

Try to drag the icon to another position.

The icon does not move as expected.

On the PC version, dragging works correctly.

✔️ Expected Behavior

The embedded small icon should be movable in the app, just like in the PC version.

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🐞 bug Something isn't working label Mar 25, 2025
Copy link

dosubot bot commented Mar 25, 2025

Hey @yatokami! 👋 I'm here to help you with any bugs, questions, or contributions you have for Dify. I'm a bot designed to assist you while you wait for a human maintainer. Let's tackle this issue together!

The issue you're experiencing with the embedded small icon not being movable in the app, while it works on the PC, might be related to platform-specific code or configurations. In the codebase, there are conditional statements that differentiate behavior between the app and PC versions using variables like isPC and isInstalledApp. These variables affect styles and layout configurations, which might influence the drag-and-drop functionality [1].

Additionally, the drag-and-drop functionality for the small icon is handled by the handleElementDrag function, which sets up event listeners for mouse events to update the position of the element being dragged [2]. It's possible that there might be differences in how these event listeners are set up or triggered in the app version compared to the PC version.

You might want to check if there are any platform-specific conditions affecting the drag-and-drop behavior in the app version or if there are any differences in how event listeners are implemented for the app.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working good first issue Good first issue for newcomers
Projects
None yet
2 participants