10-13-2018 09:02
10-13-2018 09:02
I'm trying to user Panorama view on my clockface. The problem is when I swipe horizontally between pages Versa switches the page AND at the same time switches out of the clockface all together to the list of other applications on the watch. Is Panarama view meant to be used on clockface? Is there a way to prevent the watch from switching away from the clockface when the view is up? May be other way would be to prevent the panorama view from switching pages on swipe and do it programmaticaly on click?
Answered! Go to the Best Answer.
10-15-2018 13:44
10-15-2018 13:44
Unfortunately you can't do that on a clock face with panorama. You can just show and hide different SVG elements using the touch event.
<svg> <svg id="page1"></svg> <svg id="page2" display="none"></svg> </svg>
https://dev.fitbit.com/build/guides/user-interface/javascript/#hiding-showing-an-element
10-15-2018 13:44
10-15-2018 13:44
Unfortunately you can't do that on a clock face with panorama. You can just show and hide different SVG elements using the touch event.
<svg> <svg id="page1"></svg> <svg id="page2" display="none"></svg> </svg>
https://dev.fitbit.com/build/guides/user-interface/javascript/#hiding-showing-an-element
10-15-2018 19:22
10-15-2018 19:22
Ok. What about buttons? Can I put up buttons?
10-16-2018 04:57
10-16-2018 04:57
Yes, you can use touch events.