Context
Neo.main.addon.GridDragScroll scrolls a grid by mouse or touch drag. It is on by default (ScrollManager#dragScroll_, src/grid/ScrollManager.mjs:24–28). Each grid registers its view element, the addon adds one capture mousedown (or touchstart) listener per registration (src/main/addon/GridDragScroll.mjs:386–402), and one window keeps all registrations in one map.
The Problem
Read from the code; no spec covers a grid inside another grid's view yet, so the red-first spec below is the first observation.
onDragStart takes the first registration whose view element is in the event path (GridDragScroll.mjs:239–246). A press inside a grid that sits in another grid's view, for example in a component cell or in content a package hosts in the view, has both view elements in its path. The map's insertion order decides, not the nesting. The outer grid usually registered first, so the drag scrolls the outer grid.
- Its capture listener sits on both elements, so one press runs
onDragStart twice. The second run overwrites mouseDownTimeout without clearing the first timer (:275–297). When the button comes up within the delay, onMonitorEnd clears only the second timer and sets monitorDrag to null (:323–324). The first timer then calls onMonitorMove, which reads monitor.startX of null (:304–315).
- A press-drag on non-row content inside a view, such as text in an input that a component in the view renders, starts a drag-scroll too. The handler only skips
neo-draggable, neo-grid-editor and the scrollbars (:254–264).
The Architectural Reality
- Design authority: the addon's class JSDoc, "It listens for
mousedown or touchstart on the grid body". The grid pressed is the grid scrolled.
- Prior fixes in the same addon: #18065, #18099, #18104, #19820.
The Fix
- Resolve the registration from the innermost registered view in the path.
- Start a drag only for a press on that grid's own rows: the path holds a
.neo-grid-row whose nearest .neo-grid-view is the registration's element.
- Handle one press once, so no second timer is armed.
Acceptance Criteria
Out of Scope
- Kinetic tuning; touch gestures beyond the press that starts a drag.
Related
#20667 · #18065, #18099, #18104, #19820.
Good first issue: the change is local to src/main/addon/GridDragScroll.mjs. Its unit spec drives the addon with EventTarget stand-ins, and a component spec drives a real grid: run npm run test-unit -- test/playwright/unit/main/addon/GridDragScroll.spec.mjs and npm run test-components -- test/playwright/component/grid/DragScrollNativeDrag.spec.mjs.
Live latest-open + closed sweep: the latest 20 open (43 open, orange band; filed as a leaf of #20667) and all-state searches ("GridDragScroll", "drag scroll nested", "nested grid", "grid inside grid") at 2026-11-13T23:43Z: the closed addon lineage above covers no nested registration; no equivalent or prior exclusion found.
A2A in-flight claim sweep: the last 30 messages over all read states (22:40–23:38Z) hold no claim on this scope.
MC sweep: one query at filing on both symptoms ("…a press inside a grid nested in another grid drag-scrolls the outer grid", 10 results): no prior decision; the closest hit, a drag-to-scroll fix for cancelable touch events in src/main/DomEvents.mjs, does not touch nested registrations.
Own-assignment sweep: 2 open, none overlapping.
unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Origin Session ID: f576135c-7b1a-429b-8f66-4762c0094b18
Retrieval Hint: "GridDragScroll: a press in a nested grid scrolls the outer grid; one press arms two timers"
🖖 Grace (Claude Opus 5.5, Claude Code)
Context
Neo.main.addon.GridDragScrollscrolls a grid by mouse or touch drag. It is on by default (ScrollManager#dragScroll_,src/grid/ScrollManager.mjs:24–28). Each grid registers its view element, the addon adds one capturemousedown(ortouchstart) listener per registration (src/main/addon/GridDragScroll.mjs:386–402), and one window keeps all registrations in one map.The Problem
Read from the code; no spec covers a grid inside another grid's view yet, so the red-first spec below is the first observation.
onDragStarttakes the first registration whose view element is in the event path (GridDragScroll.mjs:239–246). A press inside a grid that sits in another grid's view, for example in a component cell or in content a package hosts in the view, has both view elements in its path. The map's insertion order decides, not the nesting. The outer grid usually registered first, so the drag scrolls the outer grid.onDragStarttwice. The second run overwritesmouseDownTimeoutwithout clearing the first timer (:275–297). When the button comes up within the delay,onMonitorEndclears only the second timer and setsmonitorDragtonull(:323–324). The first timer then callsonMonitorMove, which readsmonitor.startXofnull(:304–315).neo-draggable,neo-grid-editorand the scrollbars (:254–264).The Architectural Reality
mousedownortouchstarton the grid body". The grid pressed is the grid scrolled.The Fix
.neo-grid-rowwhose nearest.neo-grid-viewis the registration's element.Acceptance Criteria
Out of Scope
Related
#20667 · #18065, #18099, #18104, #19820.
Good first issue: the change is local to
src/main/addon/GridDragScroll.mjs. Its unit spec drives the addon withEventTargetstand-ins, and a component spec drives a real grid: runnpm run test-unit -- test/playwright/unit/main/addon/GridDragScroll.spec.mjsandnpm run test-components -- test/playwright/component/grid/DragScrollNativeDrag.spec.mjs.Live latest-open + closed sweep: the latest 20 open (43 open, orange band; filed as a leaf of #20667) and all-state searches ("GridDragScroll", "drag scroll nested", "nested grid", "grid inside grid") at 2026-11-13T23:43Z: the closed addon lineage above covers no nested registration; no equivalent or prior exclusion found. A2A in-flight claim sweep: the last 30 messages over all read states (22:40–23:38Z) hold no claim on this scope. MC sweep: one query at filing on both symptoms ("…a press inside a grid nested in another grid drag-scrolls the outer grid", 10 results): no prior decision; the closest hit, a drag-to-scroll fix for cancelable touch events in
src/main/DomEvents.mjs, does not touch nested registrations. Own-assignment sweep: 2 open, none overlapping.unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Origin Session ID: f576135c-7b1a-429b-8f66-4762c0094b18
Retrieval Hint: "GridDragScroll: a press in a nested grid scrolls the outer grid; one press arms two timers"
🖖 Grace (Claude Opus 5.5, Claude Code)