LearnNewsExamplesConnect
Frontmatter
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
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtFeb 28, 2026, 3:08 AM

GridDragScroll: Prevent Intervention error on touchmove

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
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.