You are reading a single comment by @pranjal and its replies. Click here to read the full conversation.
  • I wanted to implement touch individually for these features. I posted this on the forum and they suggested I implement it in this manner.

    Bangle.on('touch', function(n,event) { 
    if(event.y<60){
    walking_subactivity();
    }  
    else if(event.y>=60 && event.y<120){
    jogging_subactivity();
      }
    else
      {
    cycling_subactivity();
      }
    });
    

    The issue now is that once I am on the working screen, if I click on the middle portion of the touch screen it takes me to the jogging screen. My main issue is that once I choose the walking option, the screen should remain there even if I click at some other part of the screen and do not jump to the jogging and cycling screen.

    I have written the function names in the if-else condition in order to make the code a bit more readable for the sake of this doubt.

    Thank you in advance.


    4 Attachments

    • Cycling (1).jpeg
    • Jogging (1).jpeg
    • Walking (1).jpeg
    • Screenshot 2022-06-19 152404.jpg
About

Avatar for pranjal @pranjal started