p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Touch on mobile/Safari browser does not work on "full" sketches

Open ksen0 opened this issue 5 months ago • 4 comments

p5.js version

2.3.0

What is your operating system?

None

Web browser and version

ios safari

Actual Behavior

In a sketch like this one, mouseX/mouseY is controlled by touch when editing and running sketch in the editor. However, in "full" mode, touch is not responsive on ios mobile.

Expected Behavior

Both /sketches/ and /gull/ URLs provide p5.js previews with the same handling of touch events

Steps to reproduce

In "full" mode of this sketch, touch is not responsive on ios mobile.

function setup() {
  createCanvas(windowWidth, windowHeight);
  background(100);
}

function draw() {
	circle(mouseX, mouseY, 20);
}

ksen0 avatar Jun 04 '26 10:06 ksen0

Confirming here that I'm not able to have touch work on my iOS mobile device when I'm in Safari, but I am able to get it to work when using Chrome and Firefox. Though, the touch on Chrome and Firefox jostle the page around quite a bit and causes it to keep refreshing 😅

raclim avatar Jun 04 '26 15:06 raclim

hi @ksen0 i would like to work on this issue

parthjadhao01 avatar Jun 07 '26 17:06 parthjadhao01

Hello @raclim I would like to work on this one! Could you please assign

Kavya-Goyal-kcoder005 avatar Sep 11 '26 06:09 Kavya-Goyal-kcoder005

hi both @Kavya-Goyal-kcoder005 this is still marked as waiting for approval! Sorry, maintainers will be going through pending issues next week.

@parthjadhao01 can you comment here by end of day sep 18th if you're still interested? If issue is approved and you're interested, we'll assign first-come-first-served.

But in any case, sharing investigation here is always a welcome form of contribution. Thakns all!

ksen0 avatar Sep 11 '26 08:09 ksen0