processing / processing/p5.js-website

Make all sketches easier to use on mobile

Open
#768 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Discussion Enhancement Help Wanted
Dominant language
MDX
Stars
96
Forks
322
Avg merge
5d 22h
Merged PRs (30d)
8

Description

Topic

This issue is an invitation to discuss whether this is a problem - and if so, what should be done about it!

Two screenshots below show what is seen on mobile vs desktop for a sketch that is wider than it is longer (landscape rather than portrait) in the Getting Started tutorial. This means on mobile the sketch does not show the circle that should be there.

Though some sketches are not interactive on mobile (if they require keyboard presses for example), most should be viewable. One fix would be to ensure than on mobile all sketches are square. A more major fix would be to ensure that any interaction that aa sketch requires has both a desktop variant and mobile variant.

Should this extend to tutorials, examples, and references - or every sketch on the website?

Please feel free to jump in with your comments and ideas, but don't start any technical work or PRs just yet 🌱

Desktop Mobile
Screenshot on mobile of get started tutorial sketch with circle hidden Screenshot on mobile of get started tutorial sketch with circle shown
Improvements
  • Make sure that all sketches in examples, reference, and tutorials uniformly scale their iframe tag to fit the width (assigned to @webermayank)

Contributor guide

No contributing guide indexed for this repository

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

Start by reviewing the Getting Started tutorial sketch and the iframe markup used across examples, references, and tutorials. Resolve the intended scope and responsive behavior with maintainers; done means the agreed sketches display correctly on mobile without losing their documented interactions.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
accessibility, frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.