Skip to content

Fixing SVG as scroll target#2321

Merged
mergetron[bot] merged 3 commits intomainfrom
fix/svg-scroll
Aug 30, 2023
Merged

Fixing SVG as scroll target#2321
mergetron[bot] merged 3 commits intomainfrom
fix/svg-scroll

Conversation

@mattgperry
Copy link
Copy Markdown
Collaborator

This PR ensures SVG elements can be used as scroll targets. Currently, they are both not measured correctly but also can lead to an infinite loop, crashing pages.

@mattgperry mattgperry requested a review from k15a August 30, 2023 10:17
parent = current.parentNode as SVGElement
}
current = svg
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add else { break } here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah agreed, done

@mergetron mergetron bot removed the autorebasing label Aug 30, 2023
@mergetron mergetron bot merged commit 5aa49a6 into main Aug 30, 2023
@mergetron mergetron bot deleted the fix/svg-scroll branch August 30, 2023 12:25
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.

2 participants