I thought I did everything correctly with the custom element property setters but Svelte quickly informed me that I had in fact not.
I think the issue here is that Svelte has special handling for custom elements — if it sees that an attribute has a matching property it will pass it in as a property instead of an attribute. This is confusing because it does not do this for native DOM elements. ¯\(ツ)/¯
But anyway, this is probably a real bug with how I implemented the setter for offset. It should be possible to "unset" it by doing scene.offset = null but that crashes and burns right now.
I thought I did everything correctly with the custom element property setters but Svelte quickly informed me that I had in fact not.
I think the issue here is that Svelte has special handling for custom elements — if it sees that an attribute has a matching property it will pass it in as a property instead of an attribute. This is confusing because it does not do this for native DOM elements. ¯\(ツ)/¯
But anyway, this is probably a real bug with how I implemented the setter for
offset. It should be possible to "unset" it by doingscene.offset = nullbut that crashes and burns right now.