• You can try the following code:

    Bangle.on("swipe", function(dirLeftRight, dirUpDown) {
      if (dirLeftRight == -1) {
        // left
        console.log("left");
      } else if (dirLeftRight == 1) {
        // right
        console.log("right");
      } else if (dirUpDown == -1) {
        // up
        console.log("Up");
      } else if (dirUpDown == 1) {
        // down
        console.log("Down");
      }
    });
    
About

Avatar for Ganblejs @Ganblejs started