-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- p5.strands
- WebGL
- DevOps, Build process, Unit testing
- Internationalization (i18n)
- Friendly Errors
- Other (specify if possible)
p5.js version
2.1.1
Web browser and version
iOS 26
Operating system
iOS
Steps to reproduce this
2 Steps:
- Open THIS SKETCH on Safari on iOS
- Press any button
I have a keyPressed() function in the button class.
function screenInteract() {
button.keyPressed();
}
function mousePressed() {
screenInteract(mouseX, mouseY);
}
function touchStarted() {
if (touches.length > 0) {
screenInteract(touches[0].x, touches[0].y);
}
return false;
}
function touchEnded() {
if (touches.length > 0) {
screenInteract(touches[0].x, touches[0].y);
}
return false;
}
This does work on Chrome on Android. Any help appreciated!