-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
mouseY system variable eventually stops working #7392
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you! |
I managed to fix it after I checked this issue. The issue is talking about a problem with out-of-Ybounds shapes, there is a comment there mentioning problems with the I had the same issue as this user and I managed to fix it by adding Still, this is a bit problematic because it's disabling a built-in function, I'm not using it, but still, could cause more problems to some people. |
For completeness sake... is the issue fixed in newer versions of p5.js, e.g. 1.10 and above, that include the fix from 46c5226? |
I added the Then I added |
Hmm; that's odd. Could you provide a project and steps that reproduce the
issue?
…On Tue, Nov 26, 2024, 11:34 Heitor ***@***.***> wrote:
Reopened #7392 <#7392>.
—
Reply to this email directly, view it on GitHub
<#7392 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIIIN43LSBLABIITFHJP332CSWIVAVCNFSM6AAAAABSPJATBOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVGQ2DAMBXGE2DINY>
.
You are receiving this because you commented.Message ID: <processing/p5.
***@***.***>
|
As I said before, I don't know exactly what causes the problem, so I can't provide the specific steps to achieve the issue, but I can show you one of my projects. The project itself is just a colorful circle showing the color of the current pixel hovered by the mouse at the top left and the The 7th line has the command At the 72nd line the |
I can reproduce the sketch erroring out on Chromium if I remove the |
@HectorDev309 Do you happen to have any other clues to what might be the steps to reproduce the issue? (Or whether my reproduction steps are correct?) Asking since I feel there might be something I've missed (: |
@bojidar-bg I'm sorry for not answering, I actually ignored this issue, everytime I had any problem with the I didn't find out too much, but here's what I have. At first I thought we could reproduce this issue by using the Apparently both issues are related somehow, since they can be fixed by the same command, maybe we could ask something to the guy who got the other issue. |
@bojidar-bg About your try to reproduce the problem, I don't think this is related to the issue at all. The steps you took made the The issue I had was about the |
I tried moving my mouse around frantically, tabbing in and out, but I didn't get any kind of weird values 🤔 (tho I did need to do What do the incoherent mouseY values you get look like? |
Most appropriate sub-area of p5.js?
p5.js version
v1.9.4 May 21, 2024
Web browser and version
Firefox 115.17.0esr
Operating system
Windows 7
Steps to reproduce this
I don't know what exactly causes this, but the
mouseY
system variable eventually starts returning floating numbers making no sense with the current mouse Y position.I coded a simple program that shows the current
mouseY
value and it works properly, but if you make a full project it works for a short period and eventually starts showing incoherent results until you rerun the program, but it keeps happening again and again.I had this problem with two projects of mine, I couldn't notice any similarity between then that could be causing this problem, but I will try to find something while I wait for a answer.
With one of those projects I managed to avoid this issue by creating a new variable for the mouse Y position and using
movedY
to change the value of the variable, it worked, but themouseY
variable would be more reasonable.The text was updated successfully, but these errors were encountered: