Closed (fixed)
Project:
Drupal LMS
Version:
1.1.x-dev
Component:
Activities and answers
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2026 at 16:46 UTC
Updated:
2 Mar 2026 at 16:56 UTC
Jump to comment: Most recent
Comments
Comment #4
nickolajPatch replaces manual `data-lmsDragInit` guard with Drupal's `once()` API (already a declared dependency), tracks hover target in a single variable instead of querying all `.drag-over` elements on every move/end event, fixes `touchstart` target detection to use `.closest()`, makes `touchstart` passive, removes template literals for IE/older WebView compat, and improves `dragleave` to ignore child-to-parent bubbling.
Comment #7
graber commentedThanks @nickolaj, I added extended automated tests from #3572168: Drag-and-drop test coverage in a second branch, let's see if it'll be a pass..
Comment #8
ob3ron commented@nickolaj thank you for lending your expertise to give a professional finish to my hackery. 😁 It works for me in all of the ways I've tested it.
Comment #9
graber commentedMerging this without test coverage for now, there are some things that need resolving there and I don't want to block this.
Comment #11
graber commented