Streaming live at 10am (PST)

Interaction Reset on Device Orientation Change


#1

Hello!

When having multiple interactions, one for each device, I’ve noticed that when changing orientation on a tablet device between landscape and portrait, the interaction will be stuck in its current position and the interaction will stop.

I understand that the device width is changing and therefore the assigned interaction is different but is there any way that we can have the relevant interaction start when the orientation is changed so that the switch can be seamless?

I imagine that we would probably need to use JavaScript and orientation/resize event to detect when a user has flipped the orientation of a device, however, how can I target the interactions to restart/reload?

Thank you for any insight.