Skip to content

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

@ksen0

Description

@ksen0

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: MobileFor issues affecting mobile or responsive behaviorBugError or unexpected behaviors

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions