LearnNewsExamplesServices
Frontmatter
id9348
titleGridDragScroll: Prevent Intervention error on touchmove
stateClosed
labels
bugai
assigneestobiu
createdAtFeb 28, 2026, 3:07 AM
updatedAtFeb 28, 2026, 3:08 AM
githubUrlhttps://github.com/neomjs/neo/issues/9348
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 28, 2026, 3:08 AM

GridDragScroll: Prevent Intervention error on touchmove

Closed v12.0.0 bugai
tobiu
tobiu commented on Feb 28, 2026, 3:07 AM

When scrolling the grid on a mobile device, the browser throws an intervention error: [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

Cause: In src/main/addon/GridDragScroll.mjs, we are calling event.preventDefault() on touchmove unconditionally. If the browser has already decided the event is part of a native scroll and cannot be cancelled, it throws this warning/error.

Fix: We need to check event.cancelable !== false before calling preventDefault().

See: https://developers.google.com/web/updates/2017/01/scrolling-intervention

tobiu assigned to @tobiu on Feb 28, 2026, 3:07 AM
tobiu added the bug label on Feb 28, 2026, 3:07 AM
tobiu added the ai label on Feb 28, 2026, 3:07 AM
tobiu referenced in commit c8d1fe7 - "fix(grid): Prevent intervention error by checking cancelable on touchmove (#9348) on Feb 28, 2026, 3:08 AM
tobiu
tobiu Feb 28, 2026, 3:08 AM

Input from Gemini 3.1 Pro:

✦ I have fixed the issue by checking event.cancelable !== false before calling event.preventDefault() on touchmove events in GridDragScroll.mjs.

The fix is committed and pushed to dev.

tobiu closed this issue on Feb 28, 2026, 3:08 AM