Frontmatter
| id | 4734 |
| title | main.addon.ScrollSync: honor window resizing |
| state | Closed |
| labels | enhancement |
| assignees | [] |
| createdAt | Aug 16, 2023, 9:59 AM |
| updatedAt | Dec 5, 2023, 1:13 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4734 |
| author | tobiu |
| commentsCount | 3 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 5, 2023, 1:13 PM |
main.addon.ScrollSync: honor window resizing

tobiu
Aug 16, 2023, 10:02 AM
@mxmrtns: actually i could use more input: IF you resize a browser window, the page should lose focus => resulting in hiding floating items

mxmrtns
Aug 16, 2023, 10:34 AM
@tobiu I would expect the following behaviour. What do you think? https://github.com/neomjs/neo/assets/19474089/3338d134-7983-4ebc-83b7-9d4f827ca812

tobiu
Dec 5, 2023, 1:13 PM
already resolved by @ExtAnimal with the component.Base floating logic
tobiu closed this issue on Dec 5, 2023, 1:13 PM
the addon works great in case you are scrolling around to keep the position of overlays sticky to their related target node. e.g. a floating menu and a menu button.
@mxmrtns noticed, that i does not sync yet in case we resize a browser window (which can change the position of target nodes as well).
either we could use a window resize listener or the WIP
main.addon.ResizeObserver.