processing / processing/p5.js-website

Browser scrolls on up and down key inputs on snake example

Open
#1,277 0 comments 0 reactions 1 assignee View on GitHub

@bryanhoffman is already working on this.

Since Mar 31, 2026.

Bug
Dominant language
MDX
Stars
96
Forks
322
Avg merge
5d 22h
Merged PRs (30d)
8

Description

Most appropriate sections of the p5.js website?

Examples

What is your operating system?

Windows

Web browser and version

Chrome 146.0.7680.81

Actual Behavior

On the snake example: https://p5js.org/examples/games-snake/ the browser will scroll when up and down arrow keys are pressed

Expected Behavior

Once you've started playing snake, these scrolling actions are disorienting. The game should remained fixed. I will comb for other examples that may need a similar treatment.

Steps to reproduce

No response

Would you like to work on the issue?

On it!

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.