-
Notifications
You must be signed in to change notification settings - Fork 541
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
Box selection [Mac] #171
Comments
@kivicode , all flags including
Thus the flag in question is now |
See also: #48 (comment) |
Thank you! I've just checked but |
Hmm, can you post the code you use to create the plot? It might be related to a change I made yesterday #170 but I doubt it. I don't currently have a mac to check on. |
Sure, I've made a blank project to test it. I've just realized that it actually works, but there is no border or other visual notification. So, now there is another question how to turn it on 😅 |
So the plot resizes when you right-click drag and release, but you cannot see the box drawn like so: The only thing that comes to mind is that you've set the style variable |
I'm wondering if it is related to the selection box adding 25% alpha to desired color. It seems like there have been issues with the OpenGL2 backend in the past ocornut/imgui#3000, which you are using. |
That's bizarre. You might try removing the 25% alpha multiplier here and reporting back if this at least makes the box visible. Obviously this is not ideal, but it gets us closer to solving the issue: Line 2282 in c73509d
|
Unfortunately not, it didn't help |
Ok thanks, then it is probably not a rendering issue. Possibly the code that renders the box is not getting reached for some reason. I am not able to reproduce this issue here, so you'll need to step through this with a debugger or just throw some print statements in there. In particular I'd like to know if any of the Lines 2275 to 2301 in c73509d
|
Okay, it's late at night here, so I'll go through it a bit later. |
Sounds good. Thanks for your help! |
I just tested this on a Raspberry Pi 4 (closest thing I have to a Unix type environment) using OpenGL2 and everything is still fine on my end. So confused by this. Can you try changing the box color by setting or pushing a new value for |
I've finally found the problem! It turns out to be about ImGui default OSX backed realization rather then ImPlot itself. The problem was that during right mouse button dragging the IO mouse position wasn't updating (so the rect had zero area). I've solved it by simply adding Thank you! |
Awesome. Glad it's working. |
Hello! I'm a bit confused with the box selection process. Firstly, there is a line that
ImPlotFlags_Selection
flag was changed toImPlotFlags_BoxSelect
(seeimplot.cpp
), but I can't find neither statement thatImPlotFlags_BoxSelect
has been deleted, nor that it's being used in the code. So the main question is how to enable box selection/zooming?The text was updated successfully, but these errors were encountered: