Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Swiping Panorama View on clockface.

ANSWERED

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?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

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

Best Answer
0 Votes

Ok. What about buttons? Can I put up buttons?

Best Answer
0 Votes

Yes, you can use touch events.

Best Answer
0 Votes