DannyMoerkerke / whatpwacando.today

Repo to collect bugs for https://whatpwacando.today/
553 stars 8 forks source link

When will the source code be releaded? #38

Closed NeoPrint3D closed 12 months ago

NeoPrint3D commented 12 months ago

so currently I saw the demonstration of the device orientation affecting the 3d cube and tried to replicate it using device motion and react three fiber, but currently I can't find a way to get device motion API to work with any javascript frameworks

DannyMoerkerke commented 12 months ago

Can you be more specific? What issues do you run into?

NeoPrint3D commented 12 months ago

So my question is when making the what pwa can do today website. Did you used a JavaScript framework like svelte, react or Vue? If so, did you use a polyfill lib because any useDeviceMotion from each respective framework does not work or is when accessing the device motion through the raw JavaScript APis on each respective framework.

DannyMoerkerke commented 12 months ago

I didn't use any framework so I don't know about what these provide. For the demos I simply used deviceorientation event and devicemotion event:

https://developer.mozilla.org/en-US/docs/Web/API/Window/deviceorientation_event https://developer.mozilla.org/en-US/docs/Web/API/Window/devicemotion_event

NeoPrint3D commented 12 months ago

Ok thanks I had a feeling it was the framework. I used device motion and device orientation in all frameworks,I guess it is the JavaScript frameworks