LearnNewsExamplesServices
Frontmatter
id4734
titlemain.addon.ScrollSync: honor window resizing
stateClosed
labels
enhancement
assignees[]
createdAtAug 16, 2023, 9:59 AM
updatedAtDec 5, 2023, 1:13 PM
githubUrlhttps://github.com/neomjs/neo/issues/4734
authortobiu
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 5, 2023, 1:13 PM

main.addon.ScrollSync: honor window resizing

Closed v8.1.0 enhancement
tobiu
tobiu commented on Aug 16, 2023, 9:59 AM

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.

tobiu added the enhancement label on Aug 16, 2023, 9:59 AM
tobiu
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
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
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