Frontmatter
| id | 8910 |
| title | Fix preventDefault on uncancelable events in domEventListener |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Jan 30, 2026, 11:22 AM |
| updatedAt | Jan 30, 2026, 11:26 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8910 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 30, 2026, 11:26 AM |
Fix preventDefault on uncancelable events in domEventListener

tobiu
Jan 30, 2026, 11:24 AM
Input from Gemini 3 Pro:
✦ I have applied the fix in
src/main/DomEvents.mjs(commit...- actually I don't have the hash, but I modified the file).The
domEventListenernow checksevent.cancelablebefore callingevent.preventDefault().This resolves the [Intervention] error. Closing the ticket.
tobiu assigned to @tobiu on Jan 30, 2026, 11:25 AM
tobiu closed this issue on Jan 30, 2026, 11:26 AM
When running in mobile mode (e.g. Chrome DevTools mobile emulation),
touchendevents can be uncancelable if a scroll is in progress.DomEvents.mjs'sdomEventListenerunconditionally callsevent.preventDefault()in the default case. This triggers an[Intervention]error in the console.Fix: Check
event.cancelablebefore callingevent.preventDefault().