LearnNewsExamplesServices
Frontmatter
id8654
titleOptimize Global MouseMove with rAF Throttling
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 14, 2026, 9:08 PM
updatedAtJan 14, 2026, 11:11 PM
githubUrlhttps://github.com/neomjs/neo/issues/8654
authortobiu
commentsCount0
parentIssue8630
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 14, 2026, 11:11 PM

Optimize Global MouseMove with rAF Throttling

Closed v11.22.0 enhancementai
tobiu
tobiu commented on Jan 14, 2026, 9:08 PM

Objective

Optimize mousemove event handling by implementing requestAnimationFrame (rAF) throttling in the Main Thread (Neo.main.DomEvents). This allows us to remove the delayable config in the App Worker components, reducing the number of messages sent across the worker bridge.

Tasks

  1. Update src/manager/DomEvent.mjs: Add mousemove to the handlerMap to route local listeners to the new specialized handler.
  2. Update src/main/DomEvents.mjs:
    • Implement onMouseMove handler.
    • Add rAF throttling logic to ensure only the latest mousemove event is sent per animation frame.
  3. Update apps/portal/view/HeaderCanvas.mjs: Remove the delayable (throttle) config for onMouseMove as it is now handled at the source.
tobiu added the enhancement label on Jan 14, 2026, 9:08 PM
tobiu added the ai label on Jan 14, 2026, 9:08 PM
tobiu referenced in commit 217b4c9 - "enhancement: Optimize Global MouseMove with rAF Throttling & Use Local MouseMove Listener (#8654)" on Jan 14, 2026, 9:44 PM
tobiu referenced in commit 8f77979 - "fix: Resolve Duplicate DomListeners & Missing MouseMove on HeaderCanvas (#8654)" on Jan 14, 2026, 9:44 PM
tobiu referenced in commit 68d5c9a - "refactor: Implement Parent Delegation for HeaderCanvas Events (#8654)" on Jan 14, 2026, 9:58 PM
tobiu referenced in commit 5b28c82 - "fix: Resolve TypeError in getEventData & Remove Debug Logs (#8654)" on Jan 14, 2026, 10:11 PM
tobiu referenced in commit 672f317 - "fix: Capture mousemove data synchronously to preserve event path (#8654)" on Jan 14, 2026, 10:11 PM
tobiu referenced in commit f936156 - "style: Tune HeaderCanvas Ether visibility (boost opacity) (#8654)" on Jan 14, 2026, 10:28 PM
tobiu assigned to @tobiu on Jan 14, 2026, 11:11 PM
tobiu closed this issue on Jan 14, 2026, 11:11 PM
tobiu added parent issue #8630 on Jan 14, 2026, 11:11 PM