You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a solve now, so there's no real need to read this issue carefully
p5.js version
No response
What is your operating system?
Windows
Web browser and version
Firefox 133.0.3 (64-bit)
Actual Behavior
When I open the ProjectOptions by clicking the + and try to select options such as "Upload File" by tapping my trackpad (on my Lenovo ideapad Slim 5 Pro) the ProjectOptions UI closes but the upload file menu doesn't open. If I hold the option for more than a second it also closes the UI even while I am still holding the cursor down.
Expected Behavior
I expect the upload file menu to open, which is what happens with I use my touchscreen, and when I use medium length full clicks.
Steps to reproduce
Click on + icon which in response opens ProjectOptions.
Depending on your hardware, try different methods of clicking on the Upload file option. Clicking and holding the mouse for a few seconds should show the issue for most hardware, but tapping the trackpad may be difficult to reproduce without one.
The text was updated successfully, but these errors were encountered:
I think that this bug was introduced in #3205 which tried to solve the opposite issue. I'd like to assign myself to this issue, and am determining how to solve it now.
Jatin24062005
added a commit
to Jatin24062005/p5.js-web-editor
that referenced
this issue
Dec 31, 2024
The issue stemmed from the use of a setTimeout in the onBlur handler that closed the project options too quickly. Specifically, the setTimeout(() => dispatch(closeProjectOptions()), 0) was causing the options to close even if the user had not finished interacting with the menu. This was particularly problematic with trackpad input, where the timing of the events could be misinterpreted.
I'm working on a solve now, so there's no real need to read this issue carefully
p5.js version
No response
What is your operating system?
Windows
Web browser and version
Firefox 133.0.3 (64-bit)
Actual Behavior
When I open the ProjectOptions by clicking the
+
and try to select options such as "Upload File" by tapping my trackpad (on my Lenovo ideapad Slim 5 Pro) the ProjectOptions UI closes but the upload file menu doesn't open. If I hold the option for more than a second it also closes the UI even while I am still holding the cursor down.Expected Behavior
I expect the upload file menu to open, which is what happens with I use my touchscreen, and when I use medium length full clicks.
Steps to reproduce
+
icon which in response opens ProjectOptions.Upload file
option. Clicking and holding the mouse for a few seconds should show the issue for most hardware, but tapping the trackpad may be difficult to reproduce without one.The text was updated successfully, but these errors were encountered: