-
-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Labels
Description
Refactor src/main/addon/WindowPosition.mjs to support high-frequency, adaptive position tracking. This replaces the legacy mouseout polling with a robust focus/blur strategy, enabling real-time window tracking for the "Infinite Canvas" feature.
Tasks:
- Adaptive Loop: Implement
startTracking()(onfocus) andstopTracking()(onblur) methods. - Loop Logic: In the tracking loop (~16ms), check
window.screenX/YandouterWidth/Height. - Delta Updates: Only send
windowPositionChangemessages to the App Worker if the values have effectively changed. - Cleanup: Deprecate or refactor the legacy
mouseoutlogic to rely on this new, more reliable strategy. - Configurability: Ensure this behavior is active for all windows (or configurable via
Neo.config).
Note: This enhancement is the "Client-Side Reporter" for the multi-window coordinate system.