Issue Clicking on Buttons during Onboarding (Windows)
Captchas
- [X] I have read the instructions.
- [X] I have searched existing issues and avoided creating duplicates.
- [X] I am not filing an enhancement request.
What happened?
During onboarding, on windows when I click on the buttons to set the theme colors, several of the buttons don't work unless I double click them (some of them did work with a single click). Similarly, one of the continue buttons required a double click to work. This is a problem as double clicking triggers the window to maximize or restore.
Reproducible?
- [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
Version
1.0.1-a.18
What platform are you seeing the problem on?
Windows
Relevant log output
No response
Hey @shootyourbricks! I'm here to help you with any bugs, questions, or contributions you have in mind. Let's squash those bugs together!
The issue you're experiencing with button clicks during the onboarding process on Windows might be related to how the event listeners are set up for theme selection and navigation buttons. The theme color selection is managed by the Themes class, which uses click event listeners to handle user interactions. If a theme container has the disabled attribute, it will prevent the click event from being processed, which might require a double-click if the state isn't updated correctly [1].
For the continue buttons, the nextEl and prevEl elements manage navigation. The nextEl button should trigger the next() method on a single click, but if the state isn't updated properly, it might require a double-click. The prevEl button is disabled on the first page, which could also affect responsiveness if the state isn't correctly managed [1].
To address this, you might want to check if there are any conditions or states that are not being updated correctly in the code, especially around the disabled attribute or event listener setup.
To continue talking to Dosu, mention @dosu.
Can confirm. Additionally:
- The window cannot be dragged or maximized manually.
- However, it does maximize when double-clicking on the unselectable colors (those colors get selected when double-clicked).
- For colors that can be selected (starting from orange to the right), double-clicking does not maximize the window.
- The next screens are also affected: the "Back" button works only on double-click and the window maximizes.
Setup:
- Zen v1.0.1-a.22
- Windows 11 22631.4541
- Two monitors:
- 2560 x 1440 (100% DPI, where Zen was open)
- 3840 x 2160 (150% DPI)
https://github.com/user-attachments/assets/d214e273-f6dd-4264-896d-7a390838fe96
This was fixed in the beta release