Skip to content

[BUG] Firefox TouchStarted not working #4656

Open
@IcyTv

Description

@IcyTv

Most appropriate sub-area of p5.js?

  • Color
  • Core/Environment/Rendering
  • Data
  • Dom
  • Image
  • IO
  • Events
  • Math
  • Typography
  • Utilities
  • WebGL
  • Other (Touch? User Interaction?)

Details about the bug:

TouchStarted is not registering in Firefox

  • p5.js version: latest? also web editor and react-p5 and therefore (devDependency) 1.0.0?
  • Web browser and version: Firefox! (77.0.1 - latest) but not on chrome...
  • Operating System: Windows, (not android - tested)
  • Steps to reproduce this:
    2 Ways I tested:
    • The hard way: With react and react-p5
    • The easy way: on the p5 editor in a new sketch type:
      function setup() {
        createCanvas(400, 400);
       }
    
      function draw() {
        background(220);
      }
    
      function touchStarted() {
         console.log("Touch started"); 
      }
    I expected it to log "Touch started" but it does not do that. (mousePressed however works)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions