ImGui: disable window move with drag event on image

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

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


Game Maker - Mouse Click image_index Checking

Updated June 10, 2016 08:05 AM

Mouse state not acting as I intend it to

Updated September 16, 2017 15:13 PM

Trap mouse in SDL

Updated November 30, 2017 09:13 AM


Unlock cursor through script

Updated September 10, 2016 08:05 AM