0
\$\begingroup\$

I'm displaying an image with ImGUI like this:

ImGui::Begin("Full image", nullptr, ImGuiWindowFlags_HorizontalScrollbar);
ImVec2 size(imageWidth, imageHeight);
ImGui::Image(imageTexture, size);
ImGui::End();

I want to add some logic to the "Full image" window so that when I click and drag on the image, the window won't change its position. Can this be toggled with a setting?

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.