Skip to content

Conversation

@Calsign
Copy link
Contributor

@Calsign Calsign commented May 23, 2019

On Android, the mouse position can be outside the sketch bounds because Processing detects touch events for the entire screen, not just the sketch. This causes ArrayIndexOutOfBoundsException for the spectrum examples (NoiseSpectrum and OscillatorSpectrum), so added an extra check to prevent out of bounds access.

On Android, the mouse position can be outside the sketch bounds because
Processing detects touch events for the entire screen, not just the sketch.
This causes ArrayIndexOutOfBoundsException for the spectrum examples
(NoiseSpectrum and OscillatorSpectrum), so added an extra check to prevent
out of bounds access.
@kevinstadler kevinstadler merged commit 642cac1 into processing:master May 24, 2019
@kevinstadler
Copy link
Collaborator

Thank you, that's great!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants