Skip to content

Conversation

@mrxz
Copy link
Collaborator

@mrxz mrxz commented Aug 14, 2025

Most of the examples set their size once. This causes issues when resizing the window or changing orientation on a handheld device. This PR adds a resize event handler to all examples. The structure follows the one used by Three.js in their examples and was already present in the interactivity example (examples/interactivity/index.html#L71-L76)

Some examples already handled resizing, these are left as-is.

@dmarcos
Copy link
Contributor

dmarcos commented Sep 15, 2025

Thanks so much!

@dmarcos dmarcos merged commit 882def6 into sparkjsdev:main Sep 15, 2025
2 checks passed
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