Skip to content

Match scroll containers by id, instead of by pointer - #659

Open
samloeschen wants to merge 1 commit into
nicbarker:mainfrom
samloeschen:main
Open

samloeschen wants to merge 1 commit into
nicbarker:mainfrom
samloeschen:main

Conversation

@samloeschen

Copy link
Copy Markdown

Hi, I found a case where it was possible for an old element to accidentally match a new element because they occupied the same address. Because scroll state persists between frames Clay could then write bounds and content dimensions into the wrong scroll record.

I also fixed a decrement that seemed like it was missing in the scroll container data cleanup.

…case where it was possible for an old container to point to memory now used by a new element, and write bounds/dimensions/etc into the wrong scroll record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant