mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Color picker slider moving around when dragging them
This commit is contained in:
@@ -86,7 +86,7 @@ namespace hex::plugin::builtin {
|
||||
drawBitsSlider(&bitValue);
|
||||
|
||||
// Configure drag and drop source and target
|
||||
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip)) {
|
||||
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) {
|
||||
// Set the current slider index as the payload
|
||||
ImGui::SetDragDropPayload("BIT_VALUE", &index, sizeof(u32));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user