Skip to content

Multitouch: releasing second touch does not trigger touches[] update #553

Closed
@Garbaz

Description

@Garbaz

Holding down two fingers on the screen and releasing one without moving(!) the other will not update touches[]. The array will still contain two objects (which are unchanged) until an update is triggered by releasing or moving the remaining finger. toucheEnded() still gets called.

If I get the touch events manually by overwriting surfaceTouchEvent(), everything works as expected, so the issue seems to be with Processing and not Android or my phone.

Test code:

void setup() {
}

void draw() {
  background(255);
  fill(0);
  textSize(64);
  textAlign(CENTER, CENTER);
  text(touches.length, width/2, height/2);
}

How to reproduce:

Hold down two fingers (It should display a 2) release one while holding the other still. It still is a 2 (at least for me), even though it should be a 1.

Versions:
Processing: 3.5.2
Android Mode: 4.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions