-
Notifications
You must be signed in to change notification settings - Fork 10
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
mouse-x, mouse-y, pmouse-x, and pmouse-y reset to 0 when the mouse leaves the canvas #76
Comments
Thanks for the bug report. I'll see why it happens. |
Hi Eric, I have commited what I hope is a fix to this issue. Let me know if the fix works as expected - or if it needs further adjustments. /Jens Axel |
Hello, Sorry for the delayed reply. This fix works as expected on Windows 7 / DrRacket 8.2 |
I feel like a related issue still exists. Was trying to recreate this simple processing sketch I believe the reason this breaks is from mouse-x having an initial value of 0. The example works for me when I constrain the value of mouse-x. `#lang sketching (define (draw) (translate mouse-x mouse-y) |
Hi @ericcervin Thanks for the report. |
Cool. This was my one little bug report from the Racketcon Hackathon |
Writing a simple drawing example that connects mouse positions with a line. When my mouse leaves the canvas, the mouse positions all become 0 and a line is drawn to the corner. I checked the java version of Processing and the values are preserved when the mouse is off the canvas.
The text was updated successfully, but these errors were encountered: