ImGui: disable window move with drag event on image

by nairdaen   Last Updated January 11, 2019 09:13 AM

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?



Related Questions


Updated June 10, 2016 08:05 AM

Updated September 16, 2017 15:13 PM

Updated November 30, 2017 09:13 AM

Updated June 19, 2016 08:05 AM

Updated September 10, 2016 08:05 AM