Did you ever wanted a proto that works portrait and landscape but could not handle the switch on the real device but only in Framer Studio? Just like me.
Some of it works in Studio, some of it in the device. None of these work on both. So then what?
Thought you would find this useful. Beware! Hacky solution, but works flawlessly:
# variable to store orientation (system doesn't cut it)
screenOrientation = "donnoyet"
# listening to screen ratio change
Utils.interval 0.2, ->
when Screen.width / Screen.height > 1
when Screen.width / Screen.height < 1
landscapeHandler = () ->
if screenOrientation != "landscape"
screenOrientation = "landscape"
# actual landscape switching code should be here
portraitHandler = () ->
if screenOrientation != "portrait"
screenOrientation = "portrait"
# actual portrait switching code should be here
Flame from Prezi