Skip to content

Browser scrolls on up and down key inputs on snake example #1277

@bryanhoffman

Description

@bryanhoffman

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!

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions