Skip to content

touches Array sometimes doesn't remove objects if touch has ended #714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JonLit opened this issue Nov 27, 2022 · 2 comments
Closed

touches Array sometimes doesn't remove objects if touch has ended #714

JonLit opened this issue Nov 27, 2022 · 2 comments

Comments

@JonLit
Copy link

JonLit commented Nov 27, 2022

With this code example:

void setup() {
  fullScreen();
}

void draw() {
  background(0);
  fill(255);
  for (TouchEvent.Pointer p : touches) {
    circle(p.x, p.y, 400);
  }
}

If I touch with one finger, a circle is displayed (at it's position)
If I touch with a second finger, a second circle is displayed
If I pull up the second finger without changing the position of the first one, the second circle still is being displayed
Only if I move or let go of the first finger, the second circle also disappeares.

Interestingly, the touchEnded() function is still correctly executed when letting go of the second finger.

It's easiest to test this by holding one finger steadily and then tapping with a second.

Tested on the following devices:

moto g5 (LineageOS 19.1 / Android 11)     : Bug occured
Xiaomi 12 Lite (Android 12)               : Bug occured
Samsung Galaxy A5 2016 (Android 7)        : Bug occured
Honor 9X Lite (Android 9)                 : Bug DIDN'T occur

Video Links:
Xiaomi 12 Lite (Android 12)
Galaxy A5 2016 (Android 7)
Motorola moto g5 (LineageOS 19.1 / Android 11)
I don't have a Video of the Honor 9X Lite unfortunately (maybe I'll make one the next few days)

@dfkettle
Copy link

I think this may be the same issue as #553.

@codeanticode
Copy link
Contributor

Closing and tagging as duplicate of #553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants