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

HFP-3847 Improve draggable handling accessibility #149

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Dec 21, 2023

When merged in, will change how hovering a dropzone is detected to improve accessibility.

Currently, a dropzone is considered as being hovered based on the mouse pointer being over the dropzone, not the draggable. This can lead to situations where the draggable is in fact hovering the dropzone, suggesting it can be dropped, but the mouse pointer is not hovering the dropzone, the user releases the mouse button and the draggable is reverted to its original position instead of being dropped to the dropzone. This issue often happens when there's a dropzone on the first line, easily leading the mouse pointer getting set off the original drag position (cmp. e.g. https://h5p.org/node/1289113).

The behavior is changed by changing the jQueryUI tolerance option for droppables from pointer to touch and by disabling dropzones on over events and out events to prevent multiple dropzones from being highlighted when being hovered by a draggable at the same time.

See ticket at https://h5ptechnology.atlassian.net/browse/HFP-3847

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

Successfully merging this pull request may close these issues.

1 participant