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

Dragging on Desktop Platforms (Mac/Windows) Fails After Longer Mouse Hold #481

Open
JanZeman opened this issue Dec 25, 2024 · 0 comments
Open

Comments

@JanZeman
Copy link

First of all thank you for maintaining this library!

Description:
On desktop platforms (e.g., macOS and Windows), dragging is disabled if the user holds the mouse button down for too long before starting to move the pointer. This behavior is inconsistent with native drag-and-drop implementations on these platforms and deviates from the same functionality observed on mobile platforms.

Steps to Reproduce:
1. Use the sample app provided by the super_drag_and_drop library.
2. On macOS or Windows:
• Press and hold the left mouse button on a draggable item for more than 1 second.
• Attempt to drag the item after the hold.
3. Observe that dragging does not start, and the drag operation is effectively canceled.

Expected Behavior:
• Dragging should remain enabled regardless of how long the user holds the mouse button, as long as they eventually move the pointer.
• This is the behavior observed in native macOS apps (e.g., Finder, Photos) and Windows apps (e.g., File Explorer).

Actual Behavior:
• Dragging is disabled after a long mouse hold, even though the pointer is eventually moved.
• This issue is not present on mobile platforms, where long presses correctly transition into drag gestures.

Platform Comparison:
1. macOS Native (e.g., Finder):
• Users can hold the mouse indefinitely before initiating a drag by moving the pointer.
2. Windows Native (e.g., File Explorer):
• Dragging is similarly not time-restricted. Holding the mouse button and moving the pointer afterward starts the drag.

Impact:
• This issue disrupts the user experience on desktop platforms, making the library inconsistent with native behaviors and potentially unsuitable for apps requiring accurate drag-and-drop functionality.

I believe that addressing this bug would improve libraries utility for desktop applications. Let me know if additional details or debugging logs are needed to assist in resolving the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant