-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
mousePressed() and touchStarted() run twice for each tap on Chrome on Android #6030
Comments
I want to work on this issue. What i have fixed is Example section on https://p5js.org/reference/#/p5/mousePressed the same issue arise there while using on chrome on android. Its my firs time open source contribution so should i generate pull request for this to commit whatever change i made? |
@shamun-khatri Do you mean you have a fix for just the I don't think the double event firing can be fixed on p5.js side because if we default to stopping propogation of |
@limzykenneth Yes you are right, BTW can i know where is actually mousePressed method is defined i am trying to find but cant find which is actual method, But i have fixed that example having same problem on chrome on android so should i generate pull request for that. And i am new to open source contribution so may be some question seems silly for you but i am trying to applying by learning. |
You can find the exact source at the bottom of the reference page for mousePressed() (pretty handy feature!) |
@limzykenneth Hello Sir, can I work on this issue or has it already been assigned to someone or resolved already. If not I would like to to give it a try. This will also be a good practice for me for GSoC 2023. |
@nikhil061102 It would be helpful if you are interested in resolving an issue to try and replicate the reported problem then identify potential solution to it and report it back here so we can see what solutions would work here. |
#6740 fixes this |
Thanks @RandomGamingDev! I'm going to close this, but anyone, feel free to comment if you discover a case we missed! |
Most appropriate sub-area of p5.js?
p5.js version
1.5.0
Web browser and version
Chrome - Most Recent
Operating System
Android - Most Recent
Steps to reproduce this
When I go to this link on Chrome on my Android and tap the screen the number goes up by two when it should go up by 1. This happens with touchStarted() too. Firefox works fine.
https://editor.p5js.org/greenStone83/full/qUpWvNmjk
The text was updated successfully, but these errors were encountered: