Describe the bug
When trying to use storybook with deviceorientation
event, it seems that the event doesn't get fired (not sure but noticed iframes
which could be causing/blocking this). Behavior is the same on mobile devices or simulating it with dev tools.
To Reproduce
Steps to reproduce the behavior:
deviceorientation
event, which can be implemented as logging out the DeviceOrientationEvent
values alpha, beta, gammaExpected behavior
`deviceorientation˙ event should be triggered in a story.
System:
Issue can be closed.
As it turns out iframe with insecure origin (http) caused trouble receiving device motion/orientation events on mobile devices. Run storybook on localhost (https) server with provided SSL certificate and it should work.
Most helpful comment
Issue can be closed.
As it turns out iframe with insecure origin (http) caused trouble receiving device motion/orientation events on mobile devices. Run storybook on localhost (https) server with provided SSL certificate and it should work.