Skip to content

mouse offscreen behaviors bugfix #8030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

mouse offscreen behaviors bugfix #8030

wants to merge 1 commit into from

Conversation

ksen0
Copy link
Member

@ksen0 ksen0 commented Aug 11, 2025

Addresses #8022
Build used by https://editor.p5js.org/ksen0/sketches/jX3A7w1dL
Snipped:

function setup() {
  createCanvas(400, 400);
}

function draw() {
  background(220);
  text(movedX, 20, 20);
  text(movedY, 20, 40);
  text(mouseX, 50, 20);
  text(mouseY, 50, 40);
  circle(mouseX, mouseY, 50);
}
function mouseClicked() {
  requestPointerLock();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant