• Hi all, I noticed that under heavy load, the touch event gets fired appropriately, however the xy coordinates are sometimes wrong (to be precise: they are a duplicate of the previous touch event).

    Trying out this code

    Bangle.on('touch', function(button, xy) {
      console.log("coords are", xy);
    });
    
    setInterval(() => {
      g.clear();
      for (let i = 0; i < 40; i ++) {
        g.fillRect(0,0,50,50);
      }
    }, 50);
    

    and then quickly touching the screen, alternating between the upper edge and lower edge, does register the correct amount of events, however a quick top, bottom, top tap results in this console log

    coords are { "x": 103, "y": 9, "type": 0 }
    coords are { "x": 117, "y": 8, "type": 0 }
    coords are { "x": 117, "y": 8, "type": 0 }
    

    It doesn't reproduce every single time, however it happens often. Any idea how this could be fixed?

    Thank you
    ~momo

About

Avatar for momo @momo started