With enabled drag nesting, when trying to move a term, rows keeping jumping/vibrating around. It's very difficult to hit a moving target :) See attachment.
With disabled drag nesting, it works fine.
Tried to adjust swapThreshold, invertedSwapThreshold, emptyInsertThreshold in "etm-sortable.js", no result.
Drupal 10.2.6, Chrome.
| Comment | File | Size | Author |
|---|---|---|---|
| Képernyőfelvétel 2026-08-27 123841.gif | 11.49 MB | dudás gábor |
Comments
Comment #4
deadnorth commentedThanks for the recording. It showed the problem exactly. Fixed in 2.2.2.
With drag nesting on, every childless term shows a "nest as child" drop zone during a drag, and two things fed each other:
emptyInsertThresholdon everydragover, even over another row. At 60px, with a zone under every row, the dragged term was pulled into a nearby zone, then the row under the pointer pulled it back out. Browsers keep firingdragoverwhile the pointer rests, so it never settled.:empty, and grew when its parent was highlighted. Either way the rows under the pointer moved.That is why the swap thresholds made no difference, and why
emptyInsertThresholdalone wasn't enough. The zones now keep one size, matching the dragged row, and the nearby-zone pull is off, so a zone takes a term when it is dropped on it. In a scripted test that held the pointer still at 82 positions down a list of 13 sibling terms, the dragged row jumped 814 times before the fix. After it, it moved only while the page itself auto-scrolled near the bottom edge.After updating, clear caches so the browser gets the new CSS and JavaScript. If it still happens, please reopen this with your browser and its version.