LearnNewsExamplesServices
Frontmatter
id19465
titleHandle-scoped sorts still claim body gestures
stateClosed
labels
bugaitestingdashboard
assigneesneo-gpt-sophie
createdAtOct 8, 2026, 4:26 AM
updatedAtOct 8, 2026, 8:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/19465
authorneo-gpt-sophie
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 601 Accounts body gestures start a popup drag
closedAtOct 8, 2026, 8:46 PM

Handle-scoped sorts still claim body gestures

Closed v13.2.0/archive-v13-2-0-chunk-24 bugaitestingdashboard
neo-gpt-sophie
neo-gpt-sophie commented on Oct 8, 2026, 4:26 AM

Context

While validating the operator's header-only Accounts request in neomjs/neo-agent-institution#601, a real-browser control pair showed that a narrower dragHandleSelector stops App-worker sorting but still suppresses ordinary body selection.

On Engine ba0341809a680986cd65087aebd8100428e9f334 (the relevant marker/sensor sources are unchanged from 6e19f603):

Configuration Native drag guard on body press Selected body text App sort state
Distinct header selector, automatic outer marker retained true empty index -1, no window drag
Same selector/header, only automatic outer marker removed false Select these ordinary index -1, no window drag

The same widget's marked header still tears out in the control. Removing the outer marker once is a diagnostic, not a durable fix: construction, items-created and insertion restore it.

The Problem

The browser claims the whole pane before the App worker rejects the gesture. A consumer-only selector change therefore fails the body-interaction requirement even when it prevents an accidental popup.

Design authority: src/draggable/container/SortZone.mjs documents that when a handle is specified, “the drag is initiated on this element, but the owning component is dragged.” The operator also explicitly requires body interactions to remain normal. The selection guard introduced for legitimate drags in #16362 must remain effective.

The Architectural Reality

  • container/DragZone.adjustItemCls and onItemInsert project neo-draggable onto every admitted item's wrapper.
  • container/SortZone.isDraggableItem tests handle membership; onDragStart checks the event path later.
  • main/draggable/sensor/Mouse.onMouseDown finds a marked ancestor and immediately adds neo-drag-active. Touch uses the same marker boundary.
  • The construction-time zone registry cannot alone gate the first press: container zones can have no dragElement until App-side drag start.

The Fix

Separate sortable membership from automatic outer-marker eligibility at the existing container drag-zone projection boundary. For a distinct descendant handle, preserve the authored native handle marker without making the whole item a native drag target. Use the same decision for initial marking and inserted items. Preserve whole-item operation and root-handle selectors; do not remove the selection guard or introduce a Mouse-only workaround.

Target surface Source of authority Proposed behavior Fallback Docs Evidence
Existing dragHandleSelector SortZone config JSDoc A distinct descendant handle does not make its body a native drag target Existing null/default whole-item and root-handle modes stay compatible Owning marker/selector JSDoc Native body-selection negative and header positive controls
Protected isItemRootDragTarget(item) / automatic neo-draggable projection Existing DragZone construction/insertion ownership One root-marker decision, independent of isDraggableItem membership; overridden by SortZone for distinct handles Null, legacy marker and root-handle modes remain compatible; authored descendant markers remain consumer-owned Both protected methods' JSDoc Initial, insertion, mode-change and root-handle unit controls

Decision Record impact: none; restores the existing handle boundary, with no new service or wire contract. Existing Body class ownership; no new production module or directory.

Acceptance Criteria

  • With a distinct descendant handle, pressing/dragging ordinary body text does not enter the native drag guard; selection and controls remain usable and no pane drag starts.
  • The same item's marked header still admits a real drag, with normal guard cleanup on release.
  • Initial/items-created and inserted items follow the same marker rule. Generic whole-item dragging, the legacy default marker, root tab-header handles, resize/native-drag ownership and Touch's marker boundary remain intact.
  • A browser regression fails on the original automatic outer marker and passes on the repair; focused marker units and relevant drag regressions pass.

Out of Scope

Accounts' consumer selector change and installed FM acceptance (Institution #601), popup-close restoration (#19462), new synchronous sensor metadata, CSS selection overrides, and unrelated drag refactors.

Related and discovery

Blocks the complete consumer solution in neomjs/neo-agent-institution#601. Related: #16362. Euclid's #19461 changes Demo B's host proof and its witnesses; those files are outside this leaf.

Latest 20 created-descending open Engine issues and latest 30 all-state A2A entries checked at 2026-10-08T02:24Z: no equivalent or competing marker claim. Org historical searches dragHandleSelector selection and body drag marker selection found no match. Own Engine assignment: only #19462, a different close-return surface. MC problem sweeps found the selection-guard rationale (memory 0e988439-7fff-4f70-9db9-629e1426f75a) and adjacent drag history, not this admission repair.

Origin Session ID: e6ce4d70-a7ff-454e-996d-e7c25efdf4cf

Retrieval Hint: "dragHandleSelector body selection outer neo-draggable marker native guard"

tobiu referenced in commit d75cc68 - "fix(drag): honor distinct header handle boundaries (#19465) (#19466) on Oct 8, 2026, 8:46 PM
tobiu closed this issue on Oct 8, 2026, 8:46 PM