I'm displaying an image with ImGUI like this:

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

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?


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.