processing / processing/p5.js

Problem with a touch event on mobile device

Open
#5,667 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Core Area:Events Bug
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Most appropriate sub-area of p5.js?
  • Accessibility (Web Accessibility)
  • Build tools and processes
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Friendly error system
  • Image
  • IO (Input/Output)
  • Localization
  • Math
  • Unit Testing
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)
p5.js version

1.4.0

Web browser and version

Chrome 101.0.4951.44

Operating System

iOS 14.7.1

Steps to reproduce this
Steps:
  1. Open https://editor.p5js.org/Michal8705/full/PaTRVm7UP on Chrome
  2. When I roll up the top bar with a quick movement (screen1), then in the text field is all the time false and touching event did not work (screen2). In iOS without this action all the time text information is 'false'

Does anyone know how to solve this problem or maybe a fix in p5 is needed?

My code below
https://editor.p5js.org/Michal8705/sketches/PaTRVm7UP

screen1
screen2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the linked full sketch on Chrome 101 for iOS 14.7.1, comparing normal use with quickly hiding the top bar. Read the linked sketch and editor example to identify how the touch state is reported. Done means establishing whether p5.js causes the state to remain false and documenting or correcting the behavior accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.