-
Notifications
You must be signed in to change notification settings - Fork 212
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
Show/hide model toggles under "Edit Display Elements" only responds to clicks at top left corner on MacOS #5015
Comments
I can also confirm that this behavior does not happen on Windows and is exclusive to the Mac OS build of xlights. |
Can't duplicate. Tried my existing show folder and a fresh folder with only a Master View (like you have) and once I click the eye-ball, it hides it, I can unhide it, hide all show all. |
Will try as a separate macOS user to see if this is related to a specific setting or the like later today. |
Tools->Package logs might help us figure this out.. |
Can confirm that the behavior persists when tested using a separate show directory as well as a separate MacOS user. @cybercop23 can you confirm that you are using MacOS Sequoia 15.1.1 (24B91) on arm64 (apple silicon) as your platform? I was also able to reproduce the same behavior on an Intel mac running MacOS 14.4.1 Sonoma as well. Logs after reproducing this with a dedicated show directory and empty sequence containing only 2 models: |
I also opted to experiment with rolling back to earlier versions of xLights obtained from https://dankulp.com/xlights/archive/ as I recall this function working as it should in the past and have made the following observations:
Therefore the cause of this behavior seems to be something that was introduced between releases 2023.22.1 and 2024.02.1 - potentially related to the update of the wxWidgets library between these releases - 1372bbf ? |
@nkaminski yes, I'm a Sequoia, M2 using the latest TestFlight version. |
@cybercop23 When you say latest TestFlight version - are you referring to a later/TestFlight build of xLights than 2024.19? |
Yes... I get interim updates with each commit. But nothing that would have broken or fixed this. |
So another interesting datapoint: I have built the latest master branch of xLights from source and still do not have an operable show/hide display elements option. Therefore, I tried setting a breakpoint at https://github.com/xLightsSequencer/xLights/blob/master/xLights/ViewsModelsPanel.cpp#L993 and it appears that I never hit this breakpoint therefore are we certain that the TestFlight version that you are using has been built against the exact same version and patchlevel of wxWidgets as version 2024.19? |
Nice work. Pretty sure I was just clicking in the middle. What type of display do you have? Is it hi res/4k? Wonder if the ratio for that is off. |
Can reproduce the behavior on:
All of these are ~200ppi displays, for which macOS is rendering at 2x scale. What I think may be happening is wxWidgets is computing the bounding box in function HitTest() as icon_image_dimension / scale_factor instead of icon_image_dimension * scale_factor; as in its shrinking the rect used to test if a click is on the icon as opposed to growing it (as the icon image is 2x as many pixels wide and tall on HiDPI vs standard). |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Single clicking the eye icon for a model in the display elements pane should toggle the visibility of that model
Screenshots
Video of the issue attached
Versions (please complete the following information):
Based on further analysis, I believe that having macOS rendering on a HiDPI/Retina display is required to trigger this behavior.
Xlights.hide.unhide.bug.480p.mov
The text was updated successfully, but these errors were encountered: