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
- Update
src/manager/DomEvent.mjs: Add mousemove to the handlerMap to route local listeners to the new specialized handler.
- Update
src/main/DomEvents.mjs:
- Implement
onMouseMove handler.
- Add rAF throttling logic to ensure only the latest mousemove event is sent per animation frame.
- Update
apps/portal/view/HeaderCanvas.mjs: Remove the delayable (throttle) config for onMouseMove as it is now handled at the source.
Objective
Optimize
mousemoveevent handling by implementing requestAnimationFrame (rAF) throttling in the Main Thread (Neo.main.DomEvents). This allows us to remove thedelayableconfig in the App Worker components, reducing the number of messages sent across the worker bridge.Tasks
src/manager/DomEvent.mjs: Addmousemoveto thehandlerMapto route local listeners to the new specialized handler.src/main/DomEvents.mjs:onMouseMovehandler.apps/portal/view/HeaderCanvas.mjs: Remove thedelayable(throttle) config foronMouseMoveas it is now handled at the source.